From 2d3a66144222e6a766eb69b5a776aa2e3220b7b3 Mon Sep 17 00:00:00 2001 From: zhaoweny Date: Fri, 19 Jun 2020 22:17:21 -0400 Subject: [PATCH] i18n/zh_CN: update zh_CN translation for lots of StatsViews (cherry picked from commit bdac2f825fba27000c87f20de8e09e61ae1376d2) --- gui/additionsPane.py | 2 +- gui/builtinStatsViews/capacitorViewFull.py | 14 +- gui/builtinStatsViews/firepowerViewFull.py | 10 +- gui/builtinStatsViews/miningyieldViewFull.py | 8 +- gui/builtinStatsViews/outgoingViewFull.py | 2 +- gui/builtinStatsViews/outgoingViewMinimal.py | 2 +- gui/builtinStatsViews/priceViewFull.py | 2 +- gui/builtinStatsViews/rechargeViewFull.py | 14 +- gui/builtinStatsViews/resistancesViewFull.py | 24 +- gui/builtinStatsViews/resourcesViewFull.py | 27 +- .../targetingMiscViewMinimal.py | 56 +-- locale/zh_CN/LC_MESSAGES/pyfa.po | 358 +++++++++++++++++- 12 files changed, 434 insertions(+), 85 deletions(-) diff --git a/gui/additionsPane.py b/gui/additionsPane.py index 8505fa0ae..21b246069 100644 --- a/gui/additionsPane.py +++ b/gui/additionsPane.py @@ -97,7 +97,7 @@ class AdditionsPane(TogglePanel): self.notebook.SetSelection(self.PANES.index(name), focus=focus) def getName(self, idx): - return _(self.PANES[idx]) + return self.PANES[idx] def ToggleContent(self, event): TogglePanel.ToggleContent(self, event) diff --git a/gui/builtinStatsViews/capacitorViewFull.py b/gui/builtinStatsViews/capacitorViewFull.py index e6ce369ad..764882d83 100644 --- a/gui/builtinStatsViews/capacitorViewFull.py +++ b/gui/builtinStatsViews/capacitorViewFull.py @@ -32,7 +32,7 @@ class CapacitorViewFull(StatsView): self.parent = parent def getHeaderText(self, fit): - return "Capacitor" + return _("Capacitor") def getTextExtentW(self, text): width, height = self.parent.GetTextExtent(text) @@ -52,7 +52,7 @@ class CapacitorViewFull(StatsView): sizerCapacitor.Add(baseBox, 0, wx.ALIGN_LEFT) bitmap = BitmapLoader.getStaticBitmap("capacitorInfo_big", parent, "gui") - tooltip = wx.ToolTip("Capacitor stability") + tooltip = wx.ToolTip(_("Capacitor stability")) bitmap.SetToolTip(tooltip) baseBox.Add(bitmap, 0, wx.ALIGN_CENTER) @@ -62,7 +62,7 @@ class CapacitorViewFull(StatsView): hbox = wx.BoxSizer(wx.HORIZONTAL) box.Add(hbox, 0, wx.ALIGN_LEFT) - hbox.Add(wx.StaticText(parent, wx.ID_ANY, "Total: "), 0, wx.ALIGN_LEFT | wx.LEFT, 3) + hbox.Add(wx.StaticText(parent, wx.ID_ANY, _("Total: ")), 0, wx.ALIGN_LEFT | wx.LEFT, 3) lbl = wx.StaticText(parent, wx.ID_ANY, "0.0") setattr(self, "label%sCapacitorCapacity" % panel.capitalize(), lbl) hbox.Add(lbl, 0, wx.ALIGN_LEFT) @@ -72,11 +72,11 @@ class CapacitorViewFull(StatsView): hbox = wx.BoxSizer(wx.HORIZONTAL) box.Add(hbox, 0, wx.ALIGN_LEFT) - lbl = wx.StaticText(parent, wx.ID_ANY, "Lasts ") + lbl = wx.StaticText(parent, wx.ID_ANY, _("Lasts ")) hbox.Add(lbl, 0, wx.ALIGN_LEFT | wx.LEFT, 3) setattr(self, "label%sCapacitorState" % panel.capitalize(), lbl) - lbl = wx.StaticText(parent, wx.ID_ANY, "0s") + lbl = wx.StaticText(parent, wx.ID_ANY, _("0s")) setattr(self, "label%sCapacitorTime" % panel.capitalize(), lbl) hbox.Add(lbl, 0, wx.ALIGN_LEFT) @@ -85,7 +85,7 @@ class CapacitorViewFull(StatsView): sizerCapacitor.Add(baseBox, 0, wx.ALIGN_CENTER_HORIZONTAL) - tooltip = wx.ToolTip("Extra stats") + tooltip = wx.ToolTip(_("Extra stats")) bitmap = BitmapLoader.getStaticBitmap("capacitorRecharge_big", parent, "gui") bitmap.SetToolTip(tooltip) baseBox.Add(bitmap, 0, wx.ALIGN_CENTER) @@ -166,7 +166,7 @@ class CapacitorViewFull(StatsView): else: t = "%ds" % capState - s = "Stable: " if capStable else "Lasts " + s = _("Stable: ") if capStable else _("Lasts ") getattr(self, lblNameTime % panel).SetLabel(t) getattr(self, lblNameState % panel).SetLabel(s) diff --git a/gui/builtinStatsViews/firepowerViewFull.py b/gui/builtinStatsViews/firepowerViewFull.py index d11d962d7..291f29a1d 100644 --- a/gui/builtinStatsViews/firepowerViewFull.py +++ b/gui/builtinStatsViews/firepowerViewFull.py @@ -38,7 +38,7 @@ class FirepowerViewFull(StatsView): self._cachedValues = [] def getHeaderText(self, fit): - return "Firepower" + return _("Firepower") def getTextExtentW(self, text): width, height = self.parent.GetTextExtent(text) @@ -71,7 +71,7 @@ class FirepowerViewFull(StatsView): box = wx.BoxSizer(wx.VERTICAL) baseBox.Add(box, 0, wx.ALIGN_CENTER) - box.Add(wx.StaticText(parent, wx.ID_ANY, damageType.capitalize()), 0, wx.ALIGN_LEFT) + box.Add(wx.StaticText(parent, wx.ID_ANY, _(damageType).capitalize()), 0, wx.ALIGN_LEFT) hbox = wx.BoxSizer(wx.HORIZONTAL) box.Add(hbox, 1, wx.ALIGN_CENTER) @@ -95,14 +95,14 @@ class FirepowerViewFull(StatsView): lbl = wx.StaticText(parent, wx.ID_ANY, "0.0") setattr(self, "label%sVolleyTotal" % panel.capitalize(), lbl) - gridS.Add(wx.StaticText(parent, wx.ID_ANY, " Volley: "), 0, wx.ALL | wx.ALIGN_RIGHT) + gridS.Add(wx.StaticText(parent, wx.ID_ANY, _(" Volley: ")), 0, wx.ALL | wx.ALIGN_RIGHT) gridS.Add(lbl, 0, wx.ALIGN_LEFT) self._cachedValues.append(0) lbl = wx.StaticText(parent, wx.ID_ANY, "0.0") setattr(self, "label%sDpsTotal" % panel.capitalize(), lbl) - gridS.Add(wx.StaticText(parent, wx.ID_ANY, " DPS: "), 0, wx.ALL | wx.ALIGN_RIGHT) + gridS.Add(wx.StaticText(parent, wx.ID_ANY, _(" DPS: ")), 0, wx.ALL | wx.ALIGN_RIGHT) self._cachedValues.append(0) @@ -110,7 +110,7 @@ class FirepowerViewFull(StatsView): image = BitmapLoader.getBitmap("mining_small", "gui") self.miningyield = wx.BitmapButton(contentPanel, -1, image) - self.miningyield.SetToolTip(wx.ToolTip("Click to toggle to Mining Yield ")) + self.miningyield.SetToolTip(wx.ToolTip(_("Click to toggle to Mining Yield "))) self.miningyield.Bind(wx.EVT_BUTTON, self.switchToMiningYieldView) sizerFirepower.Add(self.miningyield, 0, wx.ALIGN_LEFT) diff --git a/gui/builtinStatsViews/miningyieldViewFull.py b/gui/builtinStatsViews/miningyieldViewFull.py index 104a9ad2b..b778a1d40 100644 --- a/gui/builtinStatsViews/miningyieldViewFull.py +++ b/gui/builtinStatsViews/miningyieldViewFull.py @@ -35,7 +35,7 @@ class MiningYieldViewFull(StatsView): self._cachedValues = [] def getHeaderText(self, fit): - return "Mining Yield" + return _("Mining Yield") def getTextExtentW(self, text): width, height = self.parent.GetTextExtent(text) @@ -64,7 +64,7 @@ class MiningYieldViewFull(StatsView): box = wx.BoxSizer(wx.VERTICAL) baseBox.Add(box, 0, wx.ALIGN_CENTER) - box.Add(wx.StaticText(parent, wx.ID_ANY, miningType.capitalize()), 0, wx.ALIGN_LEFT) + box.Add(wx.StaticText(parent, wx.ID_ANY, _(miningType).capitalize()), 0, wx.ALIGN_LEFT) hbox = wx.BoxSizer(wx.HORIZONTAL) box.Add(hbox, 1, wx.ALIGN_CENTER) @@ -85,7 +85,7 @@ class MiningYieldViewFull(StatsView): box = wx.BoxSizer(wx.VERTICAL) baseBox.Add(box, 0, wx.EXPAND) - box.Add(wx.StaticText(parent, wx.ID_ANY, "Total"), 0, wx.ALIGN_LEFT) + box.Add(wx.StaticText(parent, wx.ID_ANY, _("Total")), 0, wx.ALIGN_LEFT) hbox = wx.BoxSizer(wx.HORIZONTAL) box.Add(hbox, 1, wx.EXPAND) @@ -98,7 +98,7 @@ class MiningYieldViewFull(StatsView): image = BitmapLoader.getBitmap("turret_small", "gui") firepower = wx.BitmapButton(contentPanel, -1, image) - firepower.SetToolTip(wx.ToolTip("Click to toggle to Firepower View")) + firepower.SetToolTip(wx.ToolTip(_("Click to toggle to Firepower View"))) firepower.Bind(wx.EVT_BUTTON, self.switchToFirepowerView) sizerMiningYield.Add(firepower, 0, wx.ALIGN_LEFT) diff --git a/gui/builtinStatsViews/outgoingViewFull.py b/gui/builtinStatsViews/outgoingViewFull.py index 85f6c73b2..8bf3b85fb 100644 --- a/gui/builtinStatsViews/outgoingViewFull.py +++ b/gui/builtinStatsViews/outgoingViewFull.py @@ -62,7 +62,7 @@ class OutgoingViewFull(StatsView): self._cachedValues = [] def getHeaderText(self, fit): - return "Remote Reps" + return _("Remote Reps") def getTextExtentW(self, text): width, height = self.parent.GetTextExtent(text) diff --git a/gui/builtinStatsViews/outgoingViewMinimal.py b/gui/builtinStatsViews/outgoingViewMinimal.py index 10dbab394..9eb42e88c 100644 --- a/gui/builtinStatsViews/outgoingViewMinimal.py +++ b/gui/builtinStatsViews/outgoingViewMinimal.py @@ -61,7 +61,7 @@ class OutgoingViewMinimal(StatsView): self._cachedValues = [] def getHeaderText(self, fit): - return "Remote Reps" + return _("Remote Reps") def getTextExtentW(self, text): width, height = self.parent.GetTextExtent(text) diff --git a/gui/builtinStatsViews/priceViewFull.py b/gui/builtinStatsViews/priceViewFull.py index 2415f1ef4..21a951033 100644 --- a/gui/builtinStatsViews/priceViewFull.py +++ b/gui/builtinStatsViews/priceViewFull.py @@ -35,7 +35,7 @@ class PriceViewFull(StatsView): self.settings = MarketPriceSettings.getInstance() def getHeaderText(self, fit): - return "Price" + return _("Price") def populatePanel(self, contentPanel, headerPanel): contentSizer = contentPanel.GetSizer() diff --git a/gui/builtinStatsViews/rechargeViewFull.py b/gui/builtinStatsViews/rechargeViewFull.py index c6e79f7b7..3442496ae 100644 --- a/gui/builtinStatsViews/rechargeViewFull.py +++ b/gui/builtinStatsViews/rechargeViewFull.py @@ -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]) diff --git a/gui/builtinStatsViews/resistancesViewFull.py b/gui/builtinStatsViews/resistancesViewFull.py index 65e1c448d..4142bda65 100644 --- a/gui/builtinStatsViews/resistancesViewFull.py +++ b/gui/builtinStatsViews/resistancesViewFull.py @@ -42,7 +42,7 @@ class ResistancesViewFull(StatsView): self.mainFrame.Bind(GE.EFFECTIVE_HP_TOGGLED, self.ehpSwitch) def getHeaderText(self, fit): - return "Resistances" + return _("Resistances") def getTextExtentW(self, text): width, height = self.parent.GetTextExtent(text) @@ -79,8 +79,12 @@ class ResistancesViewFull(StatsView): # Add an empty label, then the rest. sizerResistances.Add(wx.StaticText(contentPanel, wx.ID_ANY), wx.GBPosition(row, col), wx.GBSpan(1, 1)) col += 1 - toolTipText = {"em": "Electromagnetic resistance", "thermal": "Thermal resistance", - "kinetic": "Kinetic resistance", "explosive": "Explosive resistance"} + toolTipText = { + "em" : _("Electromagnetic resistance"), + "thermal" : _("Thermal resistance"), + "kinetic" : _("Kinetic resistance"), + "explosive": _("Explosive resistance") + } for damageType in ("em", "thermal", "kinetic", "explosive"): bitmap = BitmapLoader.getStaticBitmap("%s_big" % damageType, contentPanel, "gui") tooltip = wx.ToolTip(toolTipText[damageType]) @@ -88,7 +92,7 @@ class ResistancesViewFull(StatsView): sizerResistances.Add(bitmap, wx.GBPosition(row, col), wx.GBSpan(1, 1), wx.ALIGN_CENTER) col += 1 self.stEHPs = wx.Button(contentPanel, style=wx.BU_EXACTFIT, label="EHP") - self.stEHPs.SetToolTip(wx.ToolTip("Click to toggle between effective HP and raw HP")) + self.stEHPs.SetToolTip(wx.ToolTip(_("Click to toggle between effective HP and raw HP"))) self.stEHPs.Bind(wx.EVT_BUTTON, self.toggleEHP) @@ -102,8 +106,12 @@ class ResistancesViewFull(StatsView): gaugeColours = (((38, 133, 198), (52, 86, 98)), ((198, 38, 38), (83, 65, 67)), ((163, 163, 163), (74, 90, 93)), ((198, 133, 38), (81, 83, 67))) - toolTipText = {"shield": "Shield resistance", "armor": "Armor resistance", "hull": "Hull resistance", - "damagePattern": "Incoming damage pattern"} + toolTipText = { + "shield" : _("Shield resistance"), + "armor" : _("Armor resistance"), + "hull" : _("Hull resistance"), + "damagePattern": _("Incoming damage pattern") + } for tankType in ("shield", "armor", "hull", "separator", "damagePattern"): if tankType != "separator": bitmap = BitmapLoader.getStaticBitmap("%s_big" % tankType, contentPanel, "gui") @@ -156,7 +164,7 @@ class ResistancesViewFull(StatsView): row += 1 col = 0 - self.stEHPs.SetToolTip(wx.ToolTip("Click to toggle between effective HP and raw HP")) + self.stEHPs.SetToolTip(wx.ToolTip(_("Click to toggle between effective HP and raw HP"))) def toggleEHP(self, event): wx.PostEvent(self.mainFrame, GE.EffectiveHpToggled(effective=self.stEHPs.GetLabel() == "HP")) @@ -200,7 +208,7 @@ class ResistancesViewFull(StatsView): rrFactor = fit.ehp[tankType] / fit.hp[tankType] lbl.SetLabel(formatAmount(ehp[tankType], 3, 0, 9)) lbl.SetToolTip( - wx.ToolTip("%s: %d\nResist Multiplier: x%.2f" % (tankType.capitalize(), ehp[tankType], rrFactor))) + wx.ToolTip("%s: %d\nResist Multiplier: x%.2f" % (tankType.capitalize(), ehp[tankType], rrFactor))) else: lbl.SetLabel("0") diff --git a/gui/builtinStatsViews/resourcesViewFull.py b/gui/builtinStatsViews/resourcesViewFull.py index 6c681db8b..c9308f7d1 100644 --- a/gui/builtinStatsViews/resourcesViewFull.py +++ b/gui/builtinStatsViews/resourcesViewFull.py @@ -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) diff --git a/gui/builtinStatsViews/targetingMiscViewMinimal.py b/gui/builtinStatsViews/targetingMiscViewMinimal.py index 81af6f9c6..f639834c3 100644 --- a/gui/builtinStatsViews/targetingMiscViewMinimal.py +++ b/gui/builtinStatsViews/targetingMiscViewMinimal.py @@ -33,7 +33,7 @@ class TargetingMiscViewMinimal(StatsView): self._cachedValues = [] def getHeaderText(self, fit): - return "Targeting && Misc" + return _("Targeting && Misc") def getTextExtentW(self, text): width, height = self.parent.GetTextExtent(text) @@ -55,11 +55,11 @@ class TargetingMiscViewMinimal(StatsView): gridTargetingMisc.Add(gridTargeting, 0, wx.ALIGN_LEFT | wx.ALL, 5) - labels = (("Targets", "Targets", ""), - ("Range", "Range", "km"), - ("Scan res.", "ScanRes", "mm"), - ("Sensor str.", "SensorStr", ""), - ("Drone range", "CtrlRange", "km")) + labels = ((_("Targets"), "Targets", ""), + (_("Range"), "Range", "km"), + (_("Scan res."), "ScanRes", "mm"), + (_("Sensor str."), "SensorStr", ""), + (_("Drone range"), "CtrlRange", "km")) for header, labelShort, unit in labels: gridTargeting.Add(wx.StaticText(contentPanel, wx.ID_ANY, "%s: " % header), 0, wx.ALIGN_LEFT) @@ -79,11 +79,11 @@ class TargetingMiscViewMinimal(StatsView): gridMisc.AddGrowableCol(1) gridTargetingMisc.Add(gridMisc, 0, wx.ALIGN_LEFT | wx.ALL, 5) - labels = (("Speed", "Speed", "m/s"), - ("Align time", "AlignTime", "s"), - ("Signature", "SigRadius", "m"), - ("Warp Speed", "WarpSpeed", "AU/s"), - ("Cargo", "Cargo", "m\u00B3")) + labels = ((_("Speed"), "Speed", "m/s"), + (_("Align time"), "AlignTime", "s"), + (_("Signature"), "SigRadius", "m"), + (_("Warp Speed"), "WarpSpeed", "AU/s"), + (_("Cargo"), "Cargo", "m\u00B3")) for header, labelShort, unit in labels: gridMisc.Add(wx.StaticText(contentPanel, wx.ID_ANY, "%s: " % header), 0, wx.ALIGN_LEFT) @@ -105,23 +105,23 @@ class TargetingMiscViewMinimal(StatsView): "jamChance": lambda: fit.jamChance} cargoNamesOrder = OrderedDict(( - ("fleetHangarCapacity", "Fleet hangar"), - ("shipMaintenanceBayCapacity", "Maintenance bay"), - ("specialAmmoHoldCapacity", "Ammo hold"), - ("specialFuelBayCapacity", "Fuel bay"), - ("specialShipHoldCapacity", "Ship hold"), - ("specialSmallShipHoldCapacity", "Small ship hold"), - ("specialMediumShipHoldCapacity", "Medium ship hold"), - ("specialLargeShipHoldCapacity", "Large ship hold"), - ("specialIndustrialShipHoldCapacity", "Industrial ship hold"), - ("specialOreHoldCapacity", "Ore hold"), - ("specialMineralHoldCapacity", "Mineral hold"), - ("specialMaterialBayCapacity", "Material bay"), - ("specialGasHoldCapacity", "Gas hold"), - ("specialSalvageHoldCapacity", "Salvage hold"), - ("specialCommandCenterHoldCapacity", "Command center hold"), - ("specialPlanetaryCommoditiesHoldCapacity", "Planetary goods hold"), - ("specialQuafeHoldCapacity", "Quafe hold"))) + ("fleetHangarCapacity", _("Fleet hangar")), + ("shipMaintenanceBayCapacity", _("Maintenance bay")), + ("specialAmmoHoldCapacity", _("Ammo hold")), + ("specialFuelBayCapacity", _("Fuel bay")), + ("specialShipHoldCapacity", _("Ship hold")), + ("specialSmallShipHoldCapacity", _("Small ship hold")), + ("specialMediumShipHoldCapacity", _("Medium ship hold")), + ("specialLargeShipHoldCapacity", _("Large ship hold")), + ("specialIndustrialShipHoldCapacity", _("Industrial ship hold")), + ("specialOreHoldCapacity", _("Ore hold")), + ("specialMineralHoldCapacity", _("Mineral hold")), + ("specialMaterialBayCapacity", _("Material bay")), + ("specialGasHoldCapacity", _("Gas hold")), + ("specialSalvageHoldCapacity", _("Salvage hold")), + ("specialCommandCenterHoldCapacity", _("Command center hold")), + ("specialPlanetaryCommoditiesHoldCapacity", _("Planetary goods hold")), + ("specialQuafeHoldCapacity", _("Quafe hold")))) cargoValues = { "main": lambda: fit.ship.getModifiedItemAttr("capacity"), diff --git a/locale/zh_CN/LC_MESSAGES/pyfa.po b/locale/zh_CN/LC_MESSAGES/pyfa.po index 4ed2b1fe9..7eb229e8c 100644 --- a/locale/zh_CN/LC_MESSAGES/pyfa.po +++ b/locale/zh_CN/LC_MESSAGES/pyfa.po @@ -6,9 +6,9 @@ msgid "" msgstr "" "Project-Id-Version: pyfa 2.22.0\n" -"Report-Msgid-Bugs-To: https://github.com/pyfa-org/Pyfa/issues\n" -"POT-Creation-Date: 2020-06-17 17:35+0800\n" -"PO-Revision-Date: 2020-06-18 14:48+0800\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-06-18 17:46+0800\n" +"PO-Revision-Date: 2020-06-18 17:55+0800\n" "Last-Translator: zhaoweny \n" "Language-Team: Chinese (simplified)\n" "Language: zh_CN\n" @@ -18,34 +18,362 @@ msgstr "" "X-Generator: Poedit 2.3.1\n" "Plural-Forms: nplurals=1; plural=0;\n" -#: gui/additionsPane.py:79 -msgid "Boosters" -msgstr "增效" +#: gui/builtinStatsViews/firepowerViewFull.py:106 +msgid " DPS: " +msgstr "" -#: gui/additionsPane.py:73 +#: gui/builtinStatsViews/capacitorViewFull.py:70 +msgid " GJ" +msgstr "" + +#: gui/builtinStatsViews/firepowerViewFull.py:99 +msgid " Volley: " +msgstr "齐射" + +#: gui/builtinStatsViews/capacitorViewFull.py:79 +msgid "0s" +msgstr "0秒" + +#: gui/builtinStatsViews/rechargeViewFull.py:74 +msgid "Active shield boost" +msgstr "主动维修" + +#: gui/additionsPane.py:44 +msgid "Additions" +msgstr "附加装备" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:83 +msgid "Align time" +msgstr "起跳时间" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:110 +msgid "Ammo hold" +msgstr "" + +#: gui/builtinStatsViews/rechargeViewFull.py:75 +msgid "Armor repair amount" +msgstr "装甲维修" + +#: gui/builtinStatsViews/resistancesViewFull.py:111 +msgid "Armor resistance" +msgstr "装甲抗性" + +#: gui/additionsPane.py:77 +msgid "Boosters" +msgstr "增效剂" + +#: gui/builtinStatsViews/resourcesViewFull.py:151 +msgid "CPU" +msgstr "" + +#: gui/builtinStatsViews/resourcesViewFull.py:113 +msgid "Calibration" +msgstr "校准" + +#: gui/builtinStatsViews/capacitorViewFull.py:35 +msgid "Capacitor" +msgstr "电容" + +#: gui/builtinStatsViews/capacitorViewFull.py:55 +msgid "Capacitor stability" +msgstr "电容稳定性" + +#: gui/additionsPane.py:71 gui/builtinStatsViews/targetingMiscViewMinimal.py:86 msgid "Cargo" msgstr "货舱" -#: gui/additionsPane.py:85 +#: gui/builtinStatsViews/resourcesViewFull.py:156 +msgid "Cargo bay" +msgstr "货舱" + +#: gui/builtinStatsViews/resistancesViewFull.py:95 +#: gui/builtinStatsViews/resistancesViewFull.py:167 +msgid "Click to toggle between effective HP and raw HP" +msgstr "点击切换有效HP和原始HP" + +#: gui/builtinStatsViews/miningyieldViewFull.py:101 +msgid "Click to toggle to Firepower View" +msgstr "点击切换到火力视图" + +#: gui/builtinStatsViews/firepowerViewFull.py:114 +msgid "Click to toggle to Mining Yield " +msgstr "点击切换到矿物产出视图" + +#: gui/additionsPane.py:83 msgid "Command" msgstr "指令" -#: gui/additionsPane.py:67 +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:122 +msgid "Command center hold" +msgstr "" + +#: gui/builtinStatsViews/resourcesViewFull.py:155 +msgid "Drone bandwidth" +msgstr "无人机带宽" + +#: gui/builtinStatsViews/resourcesViewFull.py:153 +msgid "Drone bay" +msgstr "无人机仓库" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:62 +msgid "Drone range" +msgstr "无人机半径" + +#: gui/additionsPane.py:65 msgid "Drones" msgstr "无人机" -#: gui/additionsPane.py:70 -msgid "Fighters" -msgstr "铁骑机" +#: gui/builtinStatsViews/resourcesViewFull.py:111 +msgid "Drones active" +msgstr "激活的无人机" -#: gui/additionsPane.py:76 +#: gui/builtinStatsViews/resistancesViewFull.py:83 +msgid "Electromagnetic resistance" +msgstr "电磁抗性" + +#: gui/builtinStatsViews/resistancesViewFull.py:86 +msgid "Explosive resistance" +msgstr "爆炸抗性" + +#: gui/builtinStatsViews/capacitorViewFull.py:88 +msgid "Extra stats" +msgstr "额外状态" + +#: gui/builtinStatsViews/resourcesViewFull.py:154 +msgid "Fighter bay" +msgstr "铁骑舰载机仓库" + +#: gui/builtinStatsViews/resourcesViewFull.py:112 +msgid "Fighter squadrons active" +msgstr "激活的铁骑舰载机中队" + +#: gui/additionsPane.py:68 +msgid "Fighters" +msgstr "铁骑舰载机" + +#: gui/builtinStatsViews/firepowerViewFull.py:41 +msgid "Firepower" +msgstr "火力" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:108 +msgid "Fleet hangar" +msgstr "舰队机库" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:111 +msgid "Fuel bay" +msgstr "燃料机库" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:120 +msgid "Gas hold" +msgstr "气态矿物仓库" + +#: gui/builtinStatsViews/rechargeViewFull.py:76 +msgid "Hull repair amount" +msgstr "结构维修" + +#: gui/builtinStatsViews/resistancesViewFull.py:112 +msgid "Hull resistance" +msgstr "结构抗性" + +#: gui/additionsPane.py:74 msgid "Implants" msgstr "植入体" -#: gui/additionsPane.py:88 +#: gui/builtinStatsViews/resistancesViewFull.py:113 +msgid "Incoming damage pattern" +msgstr "敌对伤害模型" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:116 +msgid "Industrial ship hold" +msgstr "" + +#: gui/builtinStatsViews/resistancesViewFull.py:85 +msgid "Kinetic resistance" +msgstr "动能抗性" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:115 +msgid "Large ship hold" +msgstr "" + +#: gui/builtinStatsViews/capacitorViewFull.py:75 +#: gui/builtinStatsViews/capacitorViewFull.py:169 +msgid "Lasts " +msgstr "可维持" + +#: gui/builtinStatsViews/resourcesViewFull.py:110 +msgid "Launcher hardpoints" +msgstr "发射器" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:109 +msgid "Maintenance bay" +msgstr "维护机库" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:119 +msgid "Material bay" +msgstr "矿物机库" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:114 +msgid "Medium ship hold" +msgstr "中型舰船机库" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:118 +msgid "Mineral hold" +msgstr "矿物机库" + +#: gui/builtinStatsViews/miningyieldViewFull.py:38 +msgid "Mining Yield" +msgstr "矿物产出" + +#: gui/additionsPane.py:86 msgid "Notes" msgstr "备注" -#: gui/additionsPane.py:82 +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:117 +msgid "Ore hold" +msgstr "矿石机库" + +#: gui/builtinStatsViews/rechargeViewFull.py:73 +msgid "Passive shield recharge" +msgstr "被动回充" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:123 +msgid "Planetary goods hold" +msgstr "星系开发机库" + +#: gui/builtinStatsViews/resourcesViewFull.py:152 +msgid "PowerGrid" +msgstr "" + +#: gui/builtinStatsViews/priceViewFull.py:38 +msgid "Price" +msgstr "价格" + +#: gui/additionsPane.py:80 msgid "Projected" msgstr "" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:124 +msgid "Quafe hold" +msgstr "" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:59 +msgid "Range" +msgstr "锁定范围" + +#: gui/builtinStatsViews/rechargeViewFull.py:41 +msgid "Recharge rates" +msgstr "回充速度" + +#: gui/builtinStatsViews/rechargeViewFull.py:84 +msgid "Reinforced" +msgstr "加强回充" + +#: gui/builtinStatsViews/outgoingViewFull.py:65 +#: gui/builtinStatsViews/outgoingViewMinimal.py:64 +msgid "Remote Reps" +msgstr "遥修" + +#: gui/builtinStatsViews/resistancesViewFull.py:45 +msgid "Resistances" +msgstr "抗性" + +#: gui/builtinStatsViews/resourcesViewFull.py:82 +msgid "Resources" +msgstr "装配资源" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:121 +msgid "Salvage hold" +msgstr "打捞件机库" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:60 +msgid "Scan res." +msgstr "扫描精度" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:61 +msgid "Sensor str." +msgstr "传感器强度" + +#: gui/builtinStatsViews/resistancesViewFull.py:110 +msgid "Shield resistance" +msgstr "护盾抗性" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:112 +msgid "Ship hold" +msgstr "" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:84 +msgid "Signature" +msgstr "信号半径" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:113 +msgid "Small ship hold" +msgstr "" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:82 +msgid "Speed" +msgstr "亚光速航速" + +#: gui/builtinStatsViews/capacitorViewFull.py:169 +msgid "Stable: " +msgstr "稳定:" + +#: gui/builtinStatsViews/rechargeViewFull.py:85 +msgid "Sustained" +msgstr "持续回充" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:36 +msgid "Targeting && Misc" +msgstr "目标锁定和其他" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:58 +msgid "Targets" +msgstr "最大锁定数" + +#: gui/builtinStatsViews/resistancesViewFull.py:84 +msgid "Thermal resistance" +msgstr "热能抗性" + +#: gui/builtinStatsViews/miningyieldViewFull.py:88 +msgid "Total" +msgstr "总容量" + +#: gui/builtinStatsViews/capacitorViewFull.py:65 +msgid "Total: " +msgstr "总容量:" + +#: gui/builtinStatsViews/resourcesViewFull.py:109 +msgid "Turret hardpoints" +msgstr "炮台" + +#: gui/builtinStatsViews/targetingMiscViewMinimal.py:85 +msgid "Warp Speed" +msgstr "曲速航速" + +#: gui/builtinStatsViews/firepowerViewFull.py:66 +#: gui/builtinStatsViews/miningyieldViewFull.py:58 +msgid "drone" +msgstr "无人机" + +#: gui/builtinStatsViews/firepowerViewFull.py:66 +msgid "droneDPS" +msgstr "" + +#: gui/builtinStatsViews/firepowerViewFull.py:57 +msgid "full" +msgstr "" + +#: gui/builtinStatsViews/miningyieldViewFull.py:58 +msgid "miner" +msgstr "采矿器" + +#: gui/builtinStatsViews/miningyieldViewFull.py:58 +msgid "mining" +msgstr "" + +#: gui/builtinStatsViews/firepowerViewFull.py:66 +msgid "turret" +msgstr "炮台" + +#: gui/builtinStatsViews/firepowerViewFull.py:66 +msgid "weapon" +msgstr "武器"