Move supported languages to the LocaleSettings class, and use the command parameter as an override

This commit is contained in:
blitzmann
2020-06-19 22:44:09 -04:00
parent d939b0e565
commit d9e5349edd
3 changed files with 12 additions and 8 deletions

View File

@@ -539,6 +539,12 @@ class GraphSettings:
class LocaleSettings:
_instance = None
supported_langauges = {
"en_US": wx.LANGUAGE_ENGLISH,
"zh_CN": wx.LANGUAGE_CHINESE_SIMPLIFIED,
# todo: add the others that EVE supports
}
@classmethod
def getInstance(cls):
if cls._instance is None:
@@ -548,7 +554,7 @@ class LocaleSettings:
def __init__(self):
defaults = {
'locale': wx.LANGUAGE_DEFAULT
'locale': "en_US"
}
self.settings = SettingsProvider.getInstance().getSettings('localeSettings', defaults)