Code

Ticket #7643: makemessages.diff

File makemessages.diff, 663 bytes (added by Horst Gutmann <zerok@…>, 6 years ago)
Line 
1diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py
2index bb364d4..6eedb14 100644
3--- a/django/core/management/commands/makemessages.py
4+++ b/django/core/management/commands/makemessages.py
5@@ -14,7 +14,10 @@ def make_messages(locale=None, domain='django', verbosity='1', all=False):
6     """
7     # Need to ensure that the i18n framework is enabled
8     from django.conf import settings
9-    settings.configure(USE_I18N = True)
10+    try:
11+        settings.USE_I18N = True
12+    except ImportError:
13+        settings.configure(USE_I18N = True)
14     
15     from django.utils.translation import templatize
16