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

@@ -5,6 +5,7 @@ from logbook import Logger
pyfalog = Logger(__name__)
from service.settings import LocaleSettings
class PyfaApp(wx.App):
def OnInit(self):
"""
@@ -38,7 +39,7 @@ class PyfaApp(wx.App):
#-----------------------------------------------------------------------
def UpdateLanguage(self, lang_override = None):
def UpdateLanguage(self, lang=None):
"""
Update the language to the requested one.
@@ -53,7 +54,6 @@ class PyfaApp(wx.App):
# Language domain.
langDomain = "lang"
lang = lang_override or LocaleSettings.getInstance().get('locale')
# Languages you want to support.
supLang = LocaleSettings.supported_langauges