mirror of
https://github.com/django/django.git
synced 2025-07-04 17:59:13 +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:
parent
0b0c323708
commit
50f348a92f
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user