1
0
mirror of https://github.com/django/django.git synced 2025-07-04 01:39:20 +00:00

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
This commit is contained in:
Georg Bauer 2005-10-11 13:23:01 +00:00
parent 0b0c323708
commit 50f348a92f

View File

@ -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.