From ae3c26df6250ba4a2bd0bbd27f499eb211df9f15 Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Sat, 1 Oct 2005 16:24:21 +0000 Subject: 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 --- tests/othertests/templates.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') 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. -- cgit v1.3