Ticket #7643: makemessages.diff

File makemessages.diff, 663 bytes (added by Horst Gutmann <zerok@…>, 16 years ago)
  • django/core/management/commands/makemessages.py

    diff --git a/django/core/management/commands/makemessages.py b/django/core/management/commands/makemessages.py
    index bb364d4..6eedb14 100644
    a b def make_messages(locale=None, domain='django', verbosity='1', all=False):  
    1414    """
    1515    # Need to ensure that the i18n framework is enabled
    1616    from django.conf import settings
    17     settings.configure(USE_I18N = True)
     17    try:
     18        settings.USE_I18N = True
     19    except ImportError:
     20        settings.configure(USE_I18N = True)
    1821   
    1922    from django.utils.translation import templatize
    2023
Back to Top