Example 1: PLain text ( no translation ) | This is plain text without any translation
Example 2: normal translation as tag content | gettext('city')
Example 3: translation at tag content and at attribute title | gettext('weather')
Example 4: translation at attribute title and normal tag content | normaler text
Example 5: more than 1 translations in one tag ( use spans! ) | gettext('tag_in_tag.outer.left') == gettext('tag_in_tag.inner') == gettext('tag_in_tag.outer.right')
Example 6: Fallbacks, first in all languages, second only in english and third nothing | gettext('test.fallback_to_english') -› gettext('only_en_US') -› gettext('no_translation')
Example 7: getmedia test |
Example 8: getmedia test with forced language |
Example 9: singular and plural tests | 0 = ngettext('singular',"plural",0) 1 = ngettext('singular',"plural",1) 2 = ngettext('singular',"plural",2)
Example 10: nasted Test | gettext('lalla') ....lalalallagettext('nasty') gettext('weather.picture') gettext('weather.picture')