Ticket #3594: javascript_translation.patch
File javascript_translation.patch, 1.1 KB (added by , 18 years ago) |
---|
-
django/views/i18n.py
116 116 paths.append(path) 117 117 catalog = gettext_module.translation(domain, path, ['en']) 118 118 t.update(catalog._catalog) 119 # next load the settings.LANGUAGE_CODE translationsif it isn't english120 if default_locale != 'en':119 # next load the currently selected language, if it isn't english 120 if locale != 'en': 121 121 for path in paths: 122 122 try: 123 catalog = gettext_module.translation(domain, path, [default_locale])124 except IOError:125 catalog = None126 if catalog is not None:127 t.update(catalog._catalog)128 # last load the currently selected language, if it isn't identical to the default.129 if locale != default_locale:130 for path in paths:131 try:132 123 catalog = gettext_module.translation(domain, path, [locale]) 133 124 except IOError: 134 125 catalog = None