Add logging to help with no localization debugging

This commit is contained in:
DarkPhoenix
2020-11-24 13:01:52 +03:00
parent 690e5caf52
commit 95c25b274c

View File

@@ -572,6 +572,7 @@ class LocaleSettings:
@classmethod
def supported_langauges(cls):
"""Requires the application to be initialized, otherwise wx.Translation isn't set."""
pyfalog.info(f'using "{config.CATALOG}" to fetch languages, relatively base path "{os.getcwd()}"')
return {x: wx.Locale.FindLanguageInfo(x) for x in wx.Translations.Get().GetAvailableTranslations(config.CATALOG)}
def get(self, key):