Django

Code

Changeset 836

Show
Ignore:
Timestamp:
10/11/05 08:23:01 (3 years ago)
Author:
hugo
Message:

i18n: added two additional unit tests for i18n (filter related)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/i18n/tests/othertests/templates.py

    r775 r836  
    252252    # translation of string without i18n tag but with interpolation 
    253253    'i18n12': ('{{ _("blah%(anton)s") }}', {'anton': 'blubb'}, "blahblubb"), 
     254 
     255    # translation of a variable with a translated filter 
     256    'i18n13': ('{{ bool|yesno:_("ja,nein") }}', {'bool': True}, 'ja'), 
     257 
     258    # translation of a variable with a non-translated filter 
     259    'i18n14': ('{{ bool|yesno:"ja,nein" }}', {'bool': True}, 'ja'), 
    254260} 
    255261