i18n/zh_CN: basic gettext i18n setup and demo for zh_CN translation

(cherry picked from commit 8fe58a95f7d9c08d792b8e17605700607662f7c9)
This commit is contained in:
zhaoweny
2020-06-19 22:15:44 -04:00
committed by blitzmann
parent 31fd480fb0
commit 343f4a5196
2 changed files with 52 additions and 1 deletions

View File

@@ -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)