i18n/zh_CN: update zh_CN translation for lots of StatsViews

(cherry picked from commit bdac2f825fba27000c87f20de8e09e61ae1376d2)
This commit is contained in:
zhaoweny
2020-06-19 22:17:21 -04:00
committed by blitzmann
parent 343f4a5196
commit 2d3a661442
12 changed files with 434 additions and 85 deletions

View File

@@ -38,7 +38,7 @@ class RechargeViewFull(StatsView):
self.mainFrame.Bind(GE.EFFECTIVE_HP_TOGGLED, self.toggleEffective)
def getHeaderText(self, fit):
return "Recharge rates"
return _("Recharge rates")
def getTextExtentW(self, text):
width, height = self.parent.GetTextExtent(text)
@@ -70,10 +70,10 @@ class RechargeViewFull(StatsView):
# Add an empty label first for correct alignment.
sizerTankStats.Add(wx.StaticText(contentPanel, wx.ID_ANY, ""), 0)
toolTipText = {
"shieldPassive": "Passive shield recharge",
"shieldActive": "Active shield boost",
"armorActive": "Armor repair amount",
"hullActive": "Hull repair amount"}
"shieldPassive": _("Passive shield recharge"),
"shieldActive": _("Active shield boost"),
"armorActive": _("Armor repair amount"),
"hullActive": _("Hull repair amount")}
for tankType in ("shieldPassive", "shieldActive", "armorActive", "hullActive"):
bitmap = BitmapLoader.getStaticBitmap("%s_big" % tankType, contentPanel, "gui")
tooltip = wx.ToolTip(toolTipText[tankType])
@@ -81,8 +81,8 @@ class RechargeViewFull(StatsView):
sizerTankStats.Add(bitmap, 0, wx.ALIGN_CENTER)
toolTipText = {
"reinforced": "Reinforced",
"sustained": "Sustained"}
"reinforced": _("Reinforced"),
"sustained": _("Sustained")}
for stability in ("reinforced", "sustained"):
bitmap = BitmapLoader.getStaticBitmap("regen%s_big" % stability.capitalize(), contentPanel, "gui")
tooltip = wx.ToolTip(toolTipText[stability])