Fixed #27454 -- Skipped gettext calls for apps without a locale dir.
This commit is contained in:
parent
cb3fb34b86
commit
7107b6ff0f
|
@ -173,6 +173,7 @@ class DjangoTranslation(gettext_module.GNUTranslations):
|
|||
"gettext calls at import time.")
|
||||
for app_config in app_configs:
|
||||
localedir = os.path.join(app_config.path, 'locale')
|
||||
if os.path.exists(localedir):
|
||||
translation = self._new_gnu_trans(localedir)
|
||||
self.merge(translation)
|
||||
|
||||
|
|
Loading…
Reference in New Issue