Ticket #5494: i18n.diff

File i18n.diff, 495 bytes (added by djangobugs@…, 14 years ago)

Allow django javascript catalog to discover translation files as documented here: http://docs.djangoproject.com/en/dev/topics/i18n/deployment/#how-django-discovers-translations

  • i18n.py

     
    194194                en_catalog_missing = True
    195195            # Otherwise it is harmless.
    196196            pass
     197    # add the project's locale directories to the path
     198    paths.extend(settings.LOCALE_PATHS)
    197199    # next load the settings.LANGUAGE_CODE translations if it isn't english
    198200    if default_locale != 'en':
    199201        for path in paths:
Back to Top