From 2331417b6b1b1faaa1c04964283a534c66713ba4 Mon Sep 17 00:00:00 2001 From: Carlton Gibson Date: Thu, 28 May 2020 10:26:41 +0200 Subject: Fixed #31570 -- Corrected translation loading for apps providing only a subset of supported languages. Regression in e3e48b00127c09eafe6439d980a82fc5c591b673 Thanks to Shai Berger for report, reproduce and suggested fix. --- django/utils/translation/trans_real.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/utils/translation/trans_real.py') diff --git a/django/utils/translation/trans_real.py b/django/utils/translation/trans_real.py index eed4705f6e..8042f6fdc4 100644 --- a/django/utils/translation/trans_real.py +++ b/django/utils/translation/trans_real.py @@ -96,7 +96,7 @@ class TranslationCatalog: cat.update(trans._catalog) break else: - self._catalogs.insert(0, trans._catalog) + self._catalogs.insert(0, trans._catalog.copy()) self._plurals.insert(0, trans.plural) def get(self, key, default=None): -- cgit v1.2.1