Ticket #3063: tests_i18n_non-us-ascii_msgids.diff
File tests_i18n_non-us-ascii_msgids.diff, 2.1 KB (added by , 18 years ago) |
---|
-
locale/de/LC_MESSAGES/django.po
1 # SOME DESCRIPTIVE TITLE. 2 # Copyright (C) YEAR Free Software Foundation, Inc. 3 # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. 4 # 5 msgid "" 6 msgstr "" 7 "Project-Id-Version: Django 1.0\n" 8 "PO-Revision-Date: 2006-11-26 01:04+0200\n" 9 "MIME-Version: 1.0\n" 10 "Content-Type: text/plain; charset=UTF-8\n" 11 "Content-Transfer-Encoding: 8bit\n" 12 13 msgid "myöhä" 14 msgstr "spät" -
tests.py
10 10 from django.utils.translation import activate, deactivate, install 11 11 from django.utils.tzinfo import LocalTimezone 12 12 from datetime import datetime, timedelta 13 import os.path 13 14 import unittest 14 15 15 16 ################################# … … 503 504 # translation of a constant string 504 505 'i18n13': ('{{ _("Page not found") }}', {'LANGUAGE_CODE': 'de'}, 'Seite nicht gefunden'), 505 506 507 # translation of a missing non-us-ascii UTF-8 string 508 '18n14': ('{% load i18n %}{% trans "\xc3\x84iti" %}', {'LANGUAGE_CODE': 'de'}, '\xc3\x84iti'), 509 510 # translation of an existing non-us-ascii UTF-8 string 511 '18n15': ('{% load i18n %}{% trans "my\xc3\xb6h\xc3\xa4" %}', {'LANGUAGE_CODE': 'de'}, 'sp\xc3\xa4t'), 512 506 513 ### HANDLING OF TEMPLATE_TAG_IF_INVALID ################################### 507 514 508 515 'invalidstr01': ('{{ var|default:"Foo" }}', {}, ('Foo','INVALID')), … … 633 640 old_template_loaders = loader.template_source_loaders 634 641 loader.template_source_loaders = [test_template_loader] 635 642 643 # Add this directory to locale search path for i18n13 and i18n14 644 if not hasattr(settings, 'LOCALE_PATHS'): 645 settings.LOCALE_PATHS = [] 646 settings.LOCALE_PATHS.append(os.path.join(os.path.dirname(__file__))) 647 636 648 failures = [] 637 649 tests = TEMPLATE_TESTS.items() 638 650 tests.sort()