summaryrefslogtreecommitdiff
path: root/django
diff options
context:
space:
mode:
authorNatalia <124304+nessita@users.noreply.github.com>2023-09-20 17:39:01 -0300
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-09-22 08:55:11 +0200
commit88992c5ac62f4170bc502adb8a9d7304ce6dccc3 (patch)
treefee3422f529c62f8155aeff574baaef18e274dcb /django
parent41d82fda2a15b63bd27a6456be422c44bf43ab7b (diff)
[5.0.x] Fixed #34848 -- Ignored i18n_catalog.js file when building Django's translations catalog.
Backport of d7972436639bacada0f94d3b9818446343af59ad from main
Diffstat (limited to 'django')
-rw-r--r--django/core/management/commands/makemessages.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py
index 1d4947fb30..dc3d4026e2 100644
--- a/django/core/management/commands/makemessages.py
+++ b/django/core/management/commands/makemessages.py
@@ -392,6 +392,7 @@ class Command(BaseCommand):
if os.path.isdir(os.path.join("conf", "locale")):
self.locale_paths = [os.path.abspath(os.path.join("conf", "locale"))]
self.default_locale_path = self.locale_paths[0]
+ self.ignore_patterns.append("views/templates/i18n_catalog.js")
self.invoked_for_django = True
else:
if self.settings_available: