i18n/zh_CN: update zh_CN translation for lots of StatsViews
(cherry picked from commit bdac2f825fba27000c87f20de8e09e61ae1376d2)
This commit is contained in:
@@ -79,7 +79,7 @@ class ResourcesViewFull(StatsView):
|
||||
self.headerPanel.Layout()
|
||||
|
||||
def getHeaderText(self, fit):
|
||||
return "Resources"
|
||||
return _("Resources")
|
||||
|
||||
def getTextExtentW(self, text):
|
||||
width, height = self.parent.GetTextExtent(text)
|
||||
@@ -105,8 +105,13 @@ class ResourcesViewFull(StatsView):
|
||||
base = sizerResources
|
||||
sizer.AddStretchSpacer()
|
||||
# Turrets & launcher hardslots display
|
||||
tooltipText = {"turret": "Turret hardpoints", "launcher": "Launcher hardpoints", "drones": "Drones active",
|
||||
"fighter": "Fighter squadrons active", "calibration": "Calibration"}
|
||||
tooltipText = {
|
||||
"turret" : _("Turret hardpoints"),
|
||||
"launcher" : _("Launcher hardpoints"),
|
||||
"drones" : _("Drones active"),
|
||||
"fighter" : _("Fighter squadrons active"),
|
||||
"calibration": _("Calibration")
|
||||
}
|
||||
for type_ in ("turret", "launcher", "drones", "fighter", "calibration"):
|
||||
box = wx.BoxSizer(wx.HORIZONTAL)
|
||||
|
||||
@@ -118,8 +123,10 @@ class ResourcesViewFull(StatsView):
|
||||
|
||||
sizer.Add(box, 0, wx.ALIGN_CENTER)
|
||||
|
||||
suffix = {'turret': 'Hardpoints', 'launcher': 'Hardpoints', 'drones': 'Active', 'fighter': 'Tubes',
|
||||
'calibration': 'Points'}
|
||||
suffix = {
|
||||
'turret' : 'Hardpoints', 'launcher': 'Hardpoints', 'drones': 'Active', 'fighter': 'Tubes',
|
||||
'calibration': 'Points'
|
||||
}
|
||||
lbl = wx.StaticText(parent, wx.ID_ANY, "0")
|
||||
setattr(self, "label%sUsed%s%s" % (panel.capitalize(), type_.capitalize(), suffix[type_].capitalize()), lbl)
|
||||
box.Add(lbl, 0, wx.ALIGN_CENTER | wx.LEFT, 5)
|
||||
@@ -140,8 +147,14 @@ class ResourcesViewFull(StatsView):
|
||||
gauge_font = wx.Font(fonts.NORMAL, wx.SWISS, wx.NORMAL, wx.NORMAL, False)
|
||||
|
||||
# PG, Cpu & drone stuff
|
||||
tooltipText = {"cpu": "CPU", "pg": "PowerGrid", "droneBay": "Drone bay", "fighterBay": "Fighter bay",
|
||||
"droneBandwidth": "Drone bandwidth", "cargoBay": "Cargo bay"}
|
||||
tooltipText = {
|
||||
"cpu" : _("CPU"),
|
||||
"pg" : _("PowerGrid"),
|
||||
"droneBay" : _("Drone bay"),
|
||||
"fighterBay" : _("Fighter bay"),
|
||||
"droneBandwidth": _("Drone bandwidth"),
|
||||
"cargoBay" : _("Cargo bay")
|
||||
}
|
||||
for i, group in enumerate((("cpu", "pg"), ("cargoBay", "droneBay", "fighterBay", "droneBandwidth"))):
|
||||
main = wx.BoxSizer(wx.VERTICAL)
|
||||
base.Add(main, 1, wx.ALIGN_CENTER)
|
||||
|
||||
Reference in New Issue
Block a user