summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGeorg Bauer <gb@hugo.westfalen.de>2005-10-01 16:24:21 +0000
committerGeorg Bauer <gb@hugo.westfalen.de>2005-10-01 16:24:21 +0000
commitae3c26df6250ba4a2bd0bbd27f499eb211df9f15 (patch)
tree538e037c4831a3ea70e62594e225e0cc3ea6d5df /tests
parent280747f7571ac042c63f5575365f369a2106afed (diff)
i18n: changed resolve_variable and resolve_variable_with_filters to allways
accept string constants and to accept i18n string constants with _(), too. That way the i18n tag isn't needed in simple cases. git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@760 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
-rw-r--r--tests/othertests/templates.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/othertests/templates.py b/tests/othertests/templates.py
index 0204303bbd..509aa29a3e 100644
--- a/tests/othertests/templates.py
+++ b/tests/othertests/templates.py
@@ -241,6 +241,9 @@ TEMPLATE_TESTS = {
# simple non-translation (only marking) of a string to german
'i18n10': ('{% i18n gettext_noop("Page not found") %}', {'LANGUAGE_CODE': 'de'}, "Page not found"),
+
+ # translation of string without i18n tag
+ 'i18n11': ('{{ _("blah") }}', {}, "blah"),
}
# This replaces the standard template_loader.