Make getLocaleFromRegistryCache reload existing locales.

The core locale is loaded before this function is called, so it needs to
reload it for non-en locales to be loaded.
This commit is contained in:
Valentin Lorentz 2019-11-24 12:59:38 +01:00
parent 63b0d7e653
commit a1ee580d08

View File

@ -61,6 +61,8 @@ def getLocaleFromRegistryCache():
currentLocale = registry._cache['supybot.language'] currentLocale = registry._cache['supybot.language']
except KeyError: except KeyError:
pass pass
else:
reloadLocales()
def import_conf(): def import_conf():
"""Imports the conf into this module""" """Imports the conf into this module"""