summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorThejaswi Puthraya <thejaswi.puthraya@gmail.com>2016-06-07 18:32:42 +0530
committerTim Graham <timograham@gmail.com>2016-06-08 16:17:17 -0400
commitc8d2120b06e1b82cb0db896aa0f9767b2f14256c (patch)
treebd758c5b2b3c7edede5431e50f3fe6351aec3df3 /django
parentc4980e28e57f385d8ffed5e32ce373e52ce61049 (diff)
Fixed #26705 -- Fixed plural versions of languages not supported by Django.
Diffstat (limited to 'django')
-rw-r--r--django/utils/translation/trans_real.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py
index 7a2a1c63a2..d7e97e7ed2 100644
--- a/django/utils/translation/trans_real.py
+++ b/django/utils/translation/trans_real.py
@@ -113,6 +113,9 @@ class DjangoTranslation(gettext_module.GNUTranslations):
self.__to_language = to_language(language)
self.__locale = to_locale(language)
self._catalog = None
+ # If a language doesn't have a catalog, use the Germanic default for
+ # pluralization: anything except one is pluralized.
+ self.plural = lambda n: int(n != 1)
if self.domain == 'django':
if localedirs is not None: