Ticket #5494: jscatalog_r8521.diff

File jscatalog_r8521.diff, 735 bytes (added by Manuel Saelices, 16 years ago)

A new patch thats not assumes settings is in projectdir

  • django/views/i18n.py

     
    121121        packages = ['django.conf']
    122122    if type(packages) in (str, unicode):
    123123        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)
    125128    default_locale = to_locale(settings.LANGUAGE_CODE)
    126129    locale = to_locale(get_language())
    127130    t = {}
Back to Top