diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-11 13:23:01 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-11 13:23:01 +0000 |
| commit | 50f348a92f6953c4eeb0d98f7311124e72527016 (patch) | |
| tree | 78974869342eb1feece7aa2b9233656509c6a024 /tests | |
| parent | 0b0c3237080baeb53307e038c4d7786d985090f6 (diff) | |
i18n: added two additional unit tests for i18n (filter related)
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@836 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/othertests/templates.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/othertests/templates.py b/tests/othertests/templates.py index e73163aabc..9568b5886c 100644 --- a/tests/othertests/templates.py +++ b/tests/othertests/templates.py @@ -251,6 +251,12 @@ TEMPLATE_TESTS = { # translation of string without i18n tag but with interpolation 'i18n12': ('{{ _("blah%(anton)s") }}', {'anton': 'blubb'}, "blahblubb"), + + # translation of a variable with a translated filter + 'i18n13': ('{{ bool|yesno:_("ja,nein") }}', {'bool': True}, 'ja'), + + # translation of a variable with a non-translated filter + 'i18n14': ('{{ bool|yesno:"ja,nein" }}', {'bool': True}, 'ja'), } # This replaces the standard template_loader. |
