Updated the string manipulation texts to be prefixed, allowing for better context management if needed for things like "Effects", "System Effects". Added en translations to handle them on the English side. Updated the zh translations using merge:

`msgmerge --update locale/zh_CN/LC_MESSAGES/lang.p o locale/lang.pot`
This commit is contained in:
blitzmann
2020-06-29 20:57:17 -04:00
parent 10a4f62b78
commit 732634fefa
7 changed files with 2360 additions and 2208 deletions

View File

@@ -62,7 +62,7 @@ class PyfaApp(wx.App):
if lang in supLang:
selLang = supLang[lang]
else:
selLang = wx.LANGUAGE_ENGLISH
selLang = wx.LANGUAGE_ENGLISH_US
if self.locale:
assert sys.getrefcount(self.locale) <= 2

View File

@@ -103,10 +103,18 @@ class AddEnvironmentEffect(ContextMenuUnconditional):
def getData(self):
data = Group()
data.groups[_t('Wormhole')] = self.getEffectBeacons(
_t('Black Hole'), _t('Cataclysmic Variable'), _t('Magnetar'),
_t('Pulsar'), _t('Red Giant'), _t('Wolf Rayet'))
data.groups[_t('Sansha Incursion')] = self.getEffectBeacons(_t('Sansha Incursion'))
data.groups[_t('Triglavian Invasion')] = self.getEffectBeacons(_t('Triglavian Invasion'))
_t('ContextMenu|ProjectedEffectManipulation|Black Hole'),
_t('ContextMenu|ProjectedEffectManipulation|Cataclysmic Variable'),
_t('ContextMenu|ProjectedEffectManipulation|Magnetar'),
_t('ContextMenu|ProjectedEffectManipulation|Pulsar'),
_t('ContextMenu|ProjectedEffectManipulation|Red Giant'),
_t('ContextMenu|ProjectedEffectManipulation|Wolf Rayet'))
data.groups[_t('Sansha Incursion')] = self.getEffectBeacons(
_t('ContextMenu|ProjectedEffectManipulation|Sansha Incursion')
)
data.groups[_t('Triglavian Invasion')] = self.getEffectBeacons(
_t('ContextMenu|ProjectedEffectManipulation|Triglavian Invasion')
)
data.groups[_t('Triglavian Invasion')].groups[_t('Destructible Beacons')] = self.getDestructibleBeacons()
data.groups[_t('Abyssal Weather')] = self.getAbyssalWeather()
return data
@@ -122,7 +130,7 @@ class AddEnvironmentEffect(ContextMenuUnconditional):
data = Group()
# Stuff we don't want to see in names
garbages = (_t("System Effects"), _t("Effects"))
garbages = (_t("ContextMenu|ProjectedEffectManipulation|System Effects"), _t("ContextMenu|ProjectedEffectManipulation|Effects"))
# Get group with all the system-wide beacons
grp = sMkt.getGroup("Effect Beacon")