From a1ee580d0891782b09653ba717ea7b591d3fa595 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 24 Nov 2019 12:59:38 +0100 Subject: [PATCH] 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. --- src/i18n.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/i18n.py b/src/i18n.py index 59eb45083..cfb548f7c 100644 --- a/src/i18n.py +++ b/src/i18n.py @@ -61,6 +61,8 @@ def getLocaleFromRegistryCache(): currentLocale = registry._cache['supybot.language'] except KeyError: pass + else: + reloadLocales() def import_conf(): """Imports the conf into this module"""