Ticket #11598: i18n.py.diff

File i18n.py.diff, 561 bytes (added by Adrian Ribao, 15 years ago)
  • i18n.py

     
    133133        path = os.path.join(os.path.dirname(p.__file__), 'locale')
    134134        paths.append(path)
    135135        try:
    136             catalog = gettext_module.translation(domain, path, ['en'])
     136            catalog = gettext_module.translation(domain, path, [settings.LANGUAGE_CODE])
    137137            t.update(catalog._catalog)
    138138        except IOError:
    139139            # 'en' catalog was missing. This is harmless.
Back to Top