Bring language selection to the forefront before wx app initialization

This commit is contained in:
blitzmann
2020-06-20 15:20:56 -04:00
parent 9b73f1c221
commit 2214269cca
2 changed files with 5 additions and 3 deletions

View File

@@ -107,7 +107,9 @@ if __name__ == "__main__":
config.loggingLevel = config.LOGLEVEL_MAP.get(options.logginglevel.lower(), config.LOGLEVEL_MAP['error'])
config.defPaths(options.savepath)
config.defLogging()
config.language = options.language
from service.settings import LocaleSettings
config.language = options.language or LocaleSettings.getInstance().get('locale')
with config.logging_setup.threadbound():