More localization

This commit is contained in:
blitzmann
2020-06-07 13:44:15 -04:00
parent c3ceebcec7
commit 2490d3de92
8 changed files with 239 additions and 82 deletions

View File

@@ -30,6 +30,7 @@ from gui.auxFrame import AuxiliaryFrame
from service.prereqsCheck import version_block
_ = wx.GetTranslation
pyfalog = Logger(__name__)
@@ -64,17 +65,17 @@ class ErrorHandler:
class ErrorFrame(AuxiliaryFrame):
def __init__(self, parent=None, error_title='Error!'):
super().__init__(parent, id=wx.ID_ANY, title="pyfa error", pos=wx.DefaultPosition, size=wx.Size(500, 600))
def __init__(self, parent=None, error_title=_('Error!')):
super().__init__(parent, id=wx.ID_ANY, title=_("pyfa error"), pos=wx.DefaultPosition, size=wx.Size(500, 600))
from eos.config import gamedata_version, gamedata_date
time = datetime.datetime.fromtimestamp(int(gamedata_date)).strftime('%Y-%m-%d %H:%M:%S')
version = "pyfa " + config.getVersion() + '\nEVE Data Version: {} ({})\n\n'.format(gamedata_version, time) # gui.aboutData.versionString
desc = "pyfa has experienced an unexpected issue. Below is a message that contains crucial\n" \
"information about how this was triggered. Please contact the developers with the\n" \
"information provided through the EVE Online forums or file a GitHub issue."
desc = _("pyfa has experienced an unexpected issue. Below is a message that contains crucial \n"
"information about how this was triggered. Please contact the developers with the \n"
"information provided through the EVE Online forums or file a GitHub issue.")
self.SetSizeHints(wx.DefaultSize, wx.DefaultSize)