From 2c6e366f0ae5cb8167f992adb7d43c0f95fc4018 Mon Sep 17 00:00:00 2001 From: Georg Bauer Date: Sat, 1 Oct 2005 13:05:57 +0000 Subject: i18n: the i18n tag now supports gettext_noop. unittests updated. git-svn-id: http://code.djangoproject.com/svn/django/branches/i18n@757 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 f848863f4b..0204303bbd 100644 --- a/tests/othertests/templates.py +++ b/tests/othertests/templates.py @@ -238,6 +238,9 @@ TEMPLATE_TESTS = { # translation of plural form 'i18n09': ('{% i18n ngettext("singular", "plural", count) %}', {'count': 2}, "plural"), + + # simple non-translation (only marking) of a string to german + 'i18n10': ('{% i18n gettext_noop("Page not found") %}', {'LANGUAGE_CODE': 'de'}, "Page not found"), } # This replaces the standard template_loader. -- cgit v1.3