diff options
| author | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-01 16:35:20 +0000 |
|---|---|---|
| committer | Georg Bauer <gb@hugo.westfalen.de> | 2005-10-01 16:35:20 +0000 |
| commit | 009694db63b8c3d30dc4f07110169c4bf48a3de6 (patch) | |
| tree | c85a95f75a63d99ffd9e8da5a38694ba293de133 /tests | |
| parent | ae3c26df6250ba4a2bd0bbd27f499eb211df9f15 (diff) | |
i18n: i18n string resolution now does string interpolation against the context, too
git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@761 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/othertests/templates.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/othertests/templates.py b/tests/othertests/templates.py index 509aa29a3e..9b70230537 100644 --- a/tests/othertests/templates.py +++ b/tests/othertests/templates.py @@ -244,6 +244,9 @@ TEMPLATE_TESTS = { # translation of string without i18n tag 'i18n11': ('{{ _("blah") }}', {}, "blah"), + + # translation of string without i18n tag but with interpolation + 'i18n12': ('{{ _("blah%(anton)s") }}', {'anton': 'blubb'}, "blahblubb"), } # This replaces the standard template_loader. |
