i18n/zh_CN: reformat code and ignore _
1. update `Pyfa_Inspections.xml` to ignore `_` i18n module `gettext` will do a `gettext.install(...)` to put `_` function into `builtin` module. Currently PyCharm does not recognize this as a function and report as unresolved reference. 2. reformat code to remove padding for vertical dicts 3. update `Pyfa_CodeStyle.xml` to not pad vertical dicts (cherry picked from commit e5a570a0078f05fe34c473841af6b7746e06bfca)
This commit is contained in:
@@ -80,9 +80,9 @@ class ResistancesViewFull(StatsView):
|
||||
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"),
|
||||
"em": _("Electromagnetic resistance"),
|
||||
"thermal": _("Thermal resistance"),
|
||||
"kinetic": _("Kinetic resistance"),
|
||||
"explosive": _("Explosive resistance")
|
||||
}
|
||||
for damageType in ("em", "thermal", "kinetic", "explosive"):
|
||||
@@ -107,9 +107,9 @@ class ResistancesViewFull(StatsView):
|
||||
((198, 133, 38), (81, 83, 67)))
|
||||
|
||||
toolTipText = {
|
||||
"shield" : _("Shield resistance"),
|
||||
"armor" : _("Armor resistance"),
|
||||
"hull" : _("Hull resistance"),
|
||||
"shield": _("Shield resistance"),
|
||||
"armor": _("Armor resistance"),
|
||||
"hull": _("Hull resistance"),
|
||||
"damagePattern": _("Incoming damage pattern")
|
||||
}
|
||||
for tankType in ("shield", "armor", "hull", "separator", "damagePattern"):
|
||||
|
||||
@@ -106,10 +106,10 @@ class ResourcesViewFull(StatsView):
|
||||
sizer.AddStretchSpacer()
|
||||
# Turrets & launcher hardslots display
|
||||
tooltipText = {
|
||||
"turret" : _("Turret hardpoints"),
|
||||
"launcher" : _("Launcher hardpoints"),
|
||||
"drones" : _("Drones active"),
|
||||
"fighter" : _("Fighter squadrons active"),
|
||||
"turret": _("Turret hardpoints"),
|
||||
"launcher": _("Launcher hardpoints"),
|
||||
"drones": _("Drones active"),
|
||||
"fighter": _("Fighter squadrons active"),
|
||||
"calibration": _("Calibration")
|
||||
}
|
||||
for type_ in ("turret", "launcher", "drones", "fighter", "calibration"):
|
||||
@@ -124,7 +124,7 @@ class ResourcesViewFull(StatsView):
|
||||
sizer.Add(box, 0, wx.ALIGN_CENTER)
|
||||
|
||||
suffix = {
|
||||
'turret' : 'Hardpoints', 'launcher': 'Hardpoints', 'drones': 'Active', 'fighter': 'Tubes',
|
||||
'turret': 'Hardpoints', 'launcher': 'Hardpoints', 'drones': 'Active', 'fighter': 'Tubes',
|
||||
'calibration': 'Points'
|
||||
}
|
||||
lbl = wx.StaticText(parent, wx.ID_ANY, "0")
|
||||
@@ -148,12 +148,12 @@ class ResourcesViewFull(StatsView):
|
||||
|
||||
# PG, Cpu & drone stuff
|
||||
tooltipText = {
|
||||
"cpu" : _("CPU"),
|
||||
"pg" : _("PowerGrid"),
|
||||
"droneBay" : _("Drone bay"),
|
||||
"fighterBay" : _("Fighter bay"),
|
||||
"cpu": _("CPU"),
|
||||
"pg": _("PowerGrid"),
|
||||
"droneBay": _("Drone bay"),
|
||||
"fighterBay": _("Fighter bay"),
|
||||
"droneBandwidth": _("Drone bandwidth"),
|
||||
"cargoBay" : _("Cargo bay")
|
||||
"cargoBay": _("Cargo bay")
|
||||
}
|
||||
for i, group in enumerate((("cpu", "pg"), ("cargoBay", "droneBay", "fighterBay", "droneBandwidth"))):
|
||||
main = wx.BoxSizer(wx.VERTICAL)
|
||||
|
||||
Reference in New Issue
Block a user