summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
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: