summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/i18n/tests.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py
index 5084f2dc1d..7292bd5a0a 100644
--- a/tests/i18n/tests.py
+++ b/tests/i18n/tests.py
@@ -1925,3 +1925,16 @@ class NonDjangoLanguageTests(SimpleTestCase):
def test_non_django_language(self):
self.assertEqual(get_language(), 'xxx')
self.assertEqual(ugettext("year"), "reay")
+
+ @override_settings(
+ USE_I18N=True,
+ LANGUAGES=[
+ ('en-us', 'English'),
+ # xyz language has no locale files
+ ('xyz', 'XYZ'),
+ ],
+ )
+ @translation.override('xyz')
+ def test_plural_non_django_language(self):
+ self.assertEqual(get_language(), 'xyz')
+ self.assertEqual(ungettext('year', 'years', 2), 'years')