From 107856ab0eabee15e5402803d7abc08d6eae58d4 Mon Sep 17 00:00:00 2001 From: blitzmann Date: Sat, 25 Jul 2020 20:14:11 -0400 Subject: [PATCH] Add hyperlink to README for translations --- gui/builtinPreferenceViews/pyfaGeneralPreferences.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/gui/builtinPreferenceViews/pyfaGeneralPreferences.py b/gui/builtinPreferenceViews/pyfaGeneralPreferences.py index 9eae63d92..a6d21ded0 100644 --- a/gui/builtinPreferenceViews/pyfaGeneralPreferences.py +++ b/gui/builtinPreferenceViews/pyfaGeneralPreferences.py @@ -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"])