324 | | globalpath = os.path.join(os.path.dirname(sys.modules[settings.__module__].__file__), 'locale') |
325 | | if gettext_module.find('django', globalpath, [to_locale(lang_code)]) is not None: |
326 | | return True |
327 | | else: |
328 | | return False |
| 324 | paths = list(settings.LOCALE_PATHS) |
| 325 | paths.insert(0, os.path.join(os.path.dirname(sys.modules[settings.__module__].__file__), 'locale')) |
| 326 | for path in paths: |
| 327 | if gettext_module.find('django', path, [to_locale(lang_code)]) is not None: |
| 328 | return True |
| 329 | return False |