Add hyperlink to README for translations
This commit is contained in:
@@ -8,6 +8,7 @@ from gui.preferenceView import PreferenceView
|
||||
from service.fit import Fit
|
||||
from service.settings import SettingsProvider, LocaleSettings
|
||||
import eos.config
|
||||
import wx.lib.agw.hyperlink as hl
|
||||
|
||||
|
||||
_t = wx.GetTranslation
|
||||
@@ -93,7 +94,7 @@ class PFGeneralPref(PreferenceView):
|
||||
mainSizer.Add(self.rbAddLabels, 0, wx.EXPAND | wx.TOP | wx.RIGHT | wx.BOTTOM, 10)
|
||||
self.rbAddLabels.Bind(wx.EVT_RADIOBOX, self.OnAddLabelsChange)
|
||||
|
||||
langBox = wx.StaticBoxSizer(wx.VERTICAL, panel, "Language (requires restart)")
|
||||
langBox = wx.StaticBoxSizer(wx.VERTICAL, panel, _t("Language (requires restart)"))
|
||||
mainSizer.Add(langBox, 0, wx.EXPAND | wx.TOP | wx.RIGHT | wx.BOTTOM, 10)
|
||||
|
||||
langSizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||
@@ -117,7 +118,10 @@ class PFGeneralPref(PreferenceView):
|
||||
|
||||
langSizer.Add(self.chLang, 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 5)
|
||||
langBox.Add(langSizer)
|
||||
|
||||
langBox.Add(hl.HyperLinkCtrl(panel, -1,
|
||||
_t("Interested in helping with translations?"),
|
||||
URL="https://github.com/pyfa-org/Pyfa/blob/master/locale/README.md"
|
||||
), 0, wx.LEFT | wx.ALIGN_CENTER_VERTICAL, 15)
|
||||
eosLangSizer = wx.BoxSizer(wx.HORIZONTAL)
|
||||
|
||||
self.stEosLangLabel = wx.StaticText(panel, wx.ID_ANY, _t("EVE Data:"), wx.DefaultPosition, wx.DefaultSize, 0)
|
||||
@@ -138,9 +142,9 @@ class PFGeneralPref(PreferenceView):
|
||||
|
||||
langBox.Add(eosLangSizer)
|
||||
langBox.Add(wx.StaticText(panel, wx.ID_ANY,
|
||||
_t("(Auto will use the same language pyfa uses if available, otherwise English)"),
|
||||
_t("Auto will use the same language pyfa uses if available, otherwise English"),
|
||||
wx.DefaultPosition,
|
||||
wx.DefaultSize, 0), 0, wx.ALL | wx.ALIGN_CENTER_VERTICAL, 2)
|
||||
wx.DefaultSize, 0), 0, wx.LEFT | wx.ALIGN_CENTER_VERTICAL, 15)
|
||||
self.sFit = Fit.getInstance()
|
||||
|
||||
self.cbGlobalChar.SetValue(self.sFit.serviceFittingOptions["useGlobalCharacter"])
|
||||
|
||||
Reference in New Issue
Block a user