Ticket #5494: jscatalog.diff
File jscatalog.diff, 1.2 KB (added by , 17 years ago) |
---|
-
AUTHORS
256 256 Brian Rosner <brosner@gmail.com> 257 257 Oliver Rutherfurd <http://rutherfurd.net/> 258 258 ryankanno 259 Manuel Saelices <msaelices@yaco.es> 259 260 Ivan Sagalaev (Maniac) <http://www.softwaremaniacs.org/> 260 261 Vinay Sajip <vinay_sajip@yahoo.co.uk> 261 262 David Schein -
django/views/i18n.py
110 110 packages = ['django.conf'] 111 111 if type(packages) in (str, unicode): 112 112 packages = packages.split('+') 113 packages = [p for p in packages if p == 'django.conf' or p in settings.INSTALLED_APPS] 113 projectname = None 114 if settings.SETTINGS_MODULE is not None: 115 parts = settings.SETTINGS_MODULE.split('.') 116 projectname = parts[0] 117 packages = [p for p in packages if p == 'django.conf' or p == projectname or \ 118 p in settings.INSTALLED_APPS] 114 119 default_locale = to_locale(settings.LANGUAGE_CODE) 115 120 locale = to_locale(get_language()) 116 121 t = {}