From a20aae414e762e4d9043e76b0bf8eccd334c8ebc Mon Sep 17 00:00:00 2001 From: Patryk Zawadzki Date: Mon, 19 Feb 2018 19:09:33 +0100 Subject: Fixed #29144 -- Made untranslated strings for territorial language variants use translations from the generic language variant. --- django/utils/translation/trans_real.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'django') diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py index 7d6ef125b5..af11c2ac35 100644 --- a/django/utils/translation/trans_real.py +++ b/django/utils/translation/trans_real.py @@ -202,6 +202,8 @@ class DjangoTranslation(gettext_module.GNUTranslations): self._catalog = other._catalog.copy() else: self._catalog.update(other._catalog) + if other._fallback: + self.add_fallback(other._fallback) def language(self): """Return the translation language.""" -- cgit v1.3