Ticket #5494: jscatalog_r8521.diff
File jscatalog_r8521.diff, 735 bytes (added by , 16 years ago) |
---|
-
django/views/i18n.py
121 121 packages = ['django.conf'] 122 122 if type(packages) in (str, unicode): 123 123 packages = packages.split('+') 124 packages = [p for p in packages if p == 'django.conf' or p in settings.INSTALLED_APPS] 124 for p in packages: 125 if p != 'django.conf' and p not in settings.INSTALLED_APPS \ 126 and p.count('.') != 0: # if p not contains a dot, we assume is project dir 127 packages.remove(p) 125 128 default_locale = to_locale(settings.LANGUAGE_CODE) 126 129 locale = to_locale(get_language()) 127 130 t = {}