i18n: improve string literal annotations
1. annotate more strings for statsViews, itemStats 2. fix raw title and description for preferences 3. fix crash on opening AttributeEditor, characterEditor
This commit is contained in:
@@ -9,9 +9,9 @@ _t = wx.GetTranslation
|
||||
|
||||
|
||||
class PFContextMenuPref(PreferenceView):
|
||||
title = _t("Context Menus")
|
||||
|
||||
def populatePanel(self, panel):
|
||||
self.title = _t("Context Menus")
|
||||
self.settings = ContextMenuSettings.getInstance()
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
|
||||
|
||||
@@ -10,9 +10,9 @@ _t = wx.GetTranslation
|
||||
|
||||
|
||||
class PFGeneralPref(PreferenceView):
|
||||
title = _t("Database")
|
||||
|
||||
def populatePanel(self, panel):
|
||||
self.title = _t("Database")
|
||||
self.dirtySettings = False
|
||||
|
||||
mainSizer = wx.BoxSizer(wx.VERTICAL)
|
||||
|
||||
@@ -16,8 +16,6 @@ _t = wx.GetTranslation
|
||||
|
||||
|
||||
class PFFittingEnginePref(PreferenceView):
|
||||
title = _t("Fitting Engine")
|
||||
|
||||
def __init__(self):
|
||||
self.dirtySettings = False
|
||||
|
||||
@@ -26,6 +24,7 @@ class PFFittingEnginePref(PreferenceView):
|
||||
|
||||
# noinspection PyAttributeOutsideInit
|
||||
def populatePanel(self, panel):
|
||||
self.title = _t("Fitting Engine")
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
|
||||
mainSizer = wx.BoxSizer(wx.VERTICAL)
|
||||
|
||||
@@ -11,10 +11,9 @@ _t = wx.GetTranslation
|
||||
|
||||
|
||||
class PFEsiPref(PreferenceView):
|
||||
title = _t("EVE SSO")
|
||||
|
||||
def populatePanel(self, panel):
|
||||
|
||||
self.title = _t("EVE SSO")
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
self.settings = EsiSettings.getInstance()
|
||||
self.dirtySettings = False
|
||||
|
||||
@@ -12,9 +12,9 @@ _t = wx.GetTranslation
|
||||
|
||||
|
||||
class PFGeneralPref(PreferenceView):
|
||||
title = _t("General")
|
||||
|
||||
def populatePanel(self, panel):
|
||||
self.title = _t("General")
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
self.dirtySettings = False
|
||||
self.openFitsSettings = SettingsProvider.getInstance().getSettings("pyfaPrevOpenFits",
|
||||
@@ -93,7 +93,7 @@ class PFGeneralPref(PreferenceView):
|
||||
|
||||
langSizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||
|
||||
self.stLangLabel = wx.StaticText(panel, wx.ID_ANY, _t("Language (restart required): "), wx.DefaultPosition, wx.DefaultSize, 0)
|
||||
self.stLangLabel = wx.StaticText(panel, wx.ID_ANY, _t("Language (restart required):"), wx.DefaultPosition, wx.DefaultSize, 0)
|
||||
self.stLangLabel.Wrap(-1)
|
||||
langSizer.Add(self.stLangLabel, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
|
||||
|
||||
|
||||
@@ -14,14 +14,14 @@ _t = wx.GetTranslation
|
||||
|
||||
|
||||
class PFHTMLExportPref(PreferenceView):
|
||||
title = _t("HTML Export")
|
||||
desc = _t("HTML Export (File > Export HTML) allows you to export your entire fitting "
|
||||
"database into an HTML file at the specified location. This file can be "
|
||||
"used to easily open your fits in a web-based fitting program")
|
||||
desc4 = _t("Export Fittings in a minimal HTML Version, just containing the fittings links "
|
||||
"without any visual styling")
|
||||
|
||||
def populatePanel(self, panel):
|
||||
self.title = _t("HTML Export")
|
||||
self.desc = _t("HTML Export (File > Export HTML) allows you to export your entire fitting "
|
||||
"database into an HTML file at the specified location. This file can be "
|
||||
"used to easily open your fits in a web-based fitting program")
|
||||
self.desc4 = _t("Export Fittings in a minimal HTML Version, just containing the fittings links "
|
||||
"without any visual styling")
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
self.HTMLExportSettings = HTMLExportSettings.getInstance()
|
||||
self.dirtySettings = False
|
||||
|
||||
@@ -14,9 +14,9 @@ def OnDumpLogs(event):
|
||||
|
||||
|
||||
class PFGeneralPref(PreferenceView):
|
||||
title = _t("Logging")
|
||||
|
||||
def populatePanel(self, panel):
|
||||
self.title = _t("Logging")
|
||||
self.dirtySettings = False
|
||||
|
||||
mainSizer = wx.BoxSizer(wx.VERTICAL)
|
||||
|
||||
@@ -15,12 +15,12 @@ _t = wx.GetTranslation
|
||||
|
||||
|
||||
class PFMarketPref(PreferenceView):
|
||||
title = _t("Market & Prices")
|
||||
|
||||
def __init__(self):
|
||||
self.priceSettings = MarketPriceSettings.getInstance()
|
||||
|
||||
def populatePanel(self, panel):
|
||||
self.title = _t("Market & Prices")
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
self.sFit = Fit.getInstance()
|
||||
|
||||
|
||||
@@ -12,10 +12,9 @@ _t = wx.GetTranslation
|
||||
|
||||
|
||||
class PFNetworkPref(PreferenceView):
|
||||
title = _t("Network")
|
||||
|
||||
def populatePanel(self, panel):
|
||||
|
||||
self.title = _t("Network")
|
||||
self.mainFrame = gui.mainFrame.MainFrame.getInstance()
|
||||
self.settings = NetworkSettings.getInstance()
|
||||
self.network = Network.getInstance()
|
||||
|
||||
@@ -9,7 +9,6 @@ _t = wx.GetTranslation
|
||||
|
||||
|
||||
class PFStatViewPref(PreferenceView):
|
||||
title = _t("Statistics Panel")
|
||||
|
||||
def __init__(self):
|
||||
self.dirtySettings = False
|
||||
@@ -20,6 +19,7 @@ class PFStatViewPref(PreferenceView):
|
||||
|
||||
# noinspection PyAttributeOutsideInit
|
||||
def populatePanel(self, panel):
|
||||
self.title = _t("Statistics Panel")
|
||||
mainSizer = wx.BoxSizer(wx.VERTICAL)
|
||||
|
||||
self.stTitle = wx.StaticText(panel, wx.ID_ANY, self.title, wx.DefaultPosition, wx.DefaultSize, 0)
|
||||
@@ -96,12 +96,12 @@ class PFStatViewPref(PreferenceView):
|
||||
# Row 3
|
||||
rbSizerRow3 = wx.BoxSizer(wx.HORIZONTAL)
|
||||
|
||||
self.rbPrice = wx.RadioBox(panel, -1, _t("Price"), wx.DefaultPosition, wx.DefaultSize, ['None', 'Minimal', 'Full'], 1, wx.RA_SPECIFY_COLS)
|
||||
self.rbPrice = wx.RadioBox(panel, -1, _t("Price"), wx.DefaultPosition, wx.DefaultSize, [_t('None'), _t('Minimal'), _t('Full')], 1, wx.RA_SPECIFY_COLS)
|
||||
self.rbPrice.SetSelection(self.settings.get('price'))
|
||||
rbSizerRow3.Add(self.rbPrice, 1, wx.TOP | wx.RIGHT, 5)
|
||||
self.rbPrice.Bind(wx.EVT_RADIOBOX, self.OnPriceChange)
|
||||
|
||||
self.rbOutgoing = wx.RadioBox(panel, -1, _t("Remote Reps"), wx.DefaultPosition, wx.DefaultSize, ['None', 'Minimal', 'Full'], 1, wx.RA_SPECIFY_COLS)
|
||||
self.rbOutgoing = wx.RadioBox(panel, -1, _t("Remote Reps"), wx.DefaultPosition, wx.DefaultSize, [_t('None'), _t('Minimal'), _t('Full')], 1, wx.RA_SPECIFY_COLS)
|
||||
self.rbOutgoing.SetSelection(self.settings.get('outgoing'))
|
||||
rbSizerRow3.Add(self.rbOutgoing, 1, wx.TOP | wx.RIGHT, 5)
|
||||
self.rbOutgoing.Bind(wx.EVT_RADIOBOX, self.OnOutgoingChange)
|
||||
|
||||
@@ -9,13 +9,13 @@ _t = wx.GetTranslation
|
||||
|
||||
|
||||
class PFUpdatePref(PreferenceView):
|
||||
title = _t("Updates")
|
||||
desc = _t("Pyfa can automatically check and notify you of new releases. "
|
||||
"This feature is toggled in the Network settings. "
|
||||
"Here, you may allow pre-release notifications and view "
|
||||
"suppressed release notifications, if any.")
|
||||
|
||||
def populatePanel(self, panel):
|
||||
self.title = _t("Updates")
|
||||
self.desc = _t("Pyfa can automatically check and notify you of new releases. "
|
||||
"This feature is toggled in the Network settings. "
|
||||
"Here, you may allow pre-release notifications and view "
|
||||
"suppressed release notifications, if any.")
|
||||
self.UpdateSettings = UpdateSettings.getInstance()
|
||||
self.dirtySettings = False
|
||||
|
||||
|
||||
Reference in New Issue
Block a user