diff --git a/config.py b/config.py index 91d9ff3ec..5bdaec471 100644 --- a/config.py +++ b/config.py @@ -41,6 +41,7 @@ cipher = None clientHash = None experimentalFeatures = None version = None +language = None ESI_CACHE = 'esi_cache' diff --git a/gui/propertyEditor.py b/gui/propertyEditor.py index c2a2ecee6..a649d5808 100644 --- a/gui/propertyEditor.py +++ b/gui/propertyEditor.py @@ -19,7 +19,9 @@ from service.market import Market pyfalog = Logger(__name__) -_ = wx.GetTranslation +_t = wx.GetTranslation + + class AttributeEditor(AuxiliaryFrame): def __init__(self, parent): @@ -142,8 +144,8 @@ class AttributeEditor(AuxiliaryFrame): def OnClear(self, event): with wx.MessageDialog( self, - _("Are you sure you want to delete all overrides?"), - _("Confirm Delete"), + _t("Are you sure you want to delete all overrides?"), + _t("Confirm Delete"), wx.YES | wx.NO | wx.ICON_EXCLAMATION ) as dlg: if dlg.ShowModal() == wx.ID_YES: diff --git a/gui/ssoLogin.py b/gui/ssoLogin.py index 8a1cf1912..07b342780 100644 --- a/gui/ssoLogin.py +++ b/gui/ssoLogin.py @@ -3,6 +3,8 @@ import gui.mainFrame import webbrowser import gui.globalEvents as GE +_t = wx.GetTranslation + class SsoLogin(wx.Dialog): @@ -10,12 +12,12 @@ class SsoLogin(wx.Dialog): mainFrame = gui.mainFrame.MainFrame.getInstance() super().__init__( - mainFrame, id=wx.ID_ANY, title=_("SSO Login"), style=wx.DEFAULT_DIALOG_STYLE, - size=wx.Size(450, 240) if "wxGTK" in wx.PlatformInfo else wx.Size(400, 240)) + mainFrame, id=wx.ID_ANY, title=_t("SSO Login"), style=wx.DEFAULT_DIALOG_STYLE, + size=wx.Size(450, 240) if "wxGTK" in wx.PlatformInfo else wx.Size(400, 240)) bSizer1 = wx.BoxSizer(wx.VERTICAL) - text = wx.StaticText(self, wx.ID_ANY, _("Copy and paste the block of text provided by pyfa.io")) + text = wx.StaticText(self, wx.ID_ANY, _t("Copy and paste the block of text provided by pyfa.io")) bSizer1.Add(text, 0, wx.ALL | wx.EXPAND, 10) self.ssoInfoCtrl = wx.TextCtrl(self, wx.ID_ANY, wx.EmptyString, wx.DefaultPosition, (-1, -1), style=wx.TE_MULTILINE) @@ -44,7 +46,7 @@ class SsoLoginServer(wx.Dialog): def __init__(self, port): self.mainFrame = gui.mainFrame.MainFrame.getInstance() - super().__init__(self.mainFrame, id=wx.ID_ANY, title=_("SSO Login"), size=(-1, -1), style=wx.DEFAULT_DIALOG_STYLE) + super().__init__(self.mainFrame, id=wx.ID_ANY, title=_t("SSO Login"), size=(-1, -1), style=wx.DEFAULT_DIALOG_STYLE) from service.esi import Esi @@ -57,7 +59,7 @@ class SsoLoginServer(wx.Dialog): self.mainFrame.Bind(GE.EVT_SSO_LOGIN, self.OnLogin) self.Bind(wx.EVT_WINDOW_DESTROY, self.OnDestroy) - text = wx.StaticText(self, wx.ID_ANY, _("Waiting for character login through EVE Single Sign-On.")) + text = wx.StaticText(self, wx.ID_ANY, _t("Waiting for character login through EVE Single Sign-On.")) bSizer1.Add(text, 0, wx.ALL | wx.EXPAND, 10) bSizer3 = wx.BoxSizer(wx.VERTICAL)