Skip to content

Commit

Permalink
i18n/zh_CN: basic gettext i18n setup and demo for zh_CN translation
Browse files Browse the repository at this point in the history
(cherry picked from commit 8fe58a9)
  • Loading branch information
zhaoweny authored and blitzmann committed Jun 20, 2020
1 parent 31fd480 commit 343f4a5
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gui/additionsPane.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def select(self, name, focus=True):
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)
Expand Down
51 changes: 51 additions & 0 deletions locale/zh_CN/LC_MESSAGES/pyfa.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Chinese translations for pyfa package.
# Copyright (C) 2020 THE pyfa'S COPYRIGHT HOLDER
# This file is distributed under the same license as the pyfa package.
# zhaoweny <zhaoweny@users.noreply.github.com>, 2020.
#
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"
"Last-Translator: zhaoweny <zhaoweny@users.noreply.github.com>\n"
"Language-Team: Chinese (simplified)\n"
"Language: zh_CN\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.3.1\n"
"Plural-Forms: nplurals=1; plural=0;\n"

#: gui/additionsPane.py:79
msgid "Boosters"
msgstr "增效"

#: gui/additionsPane.py:73
msgid "Cargo"
msgstr "货舱"

#: gui/additionsPane.py:85
msgid "Command"
msgstr "指令"

#: gui/additionsPane.py:67
msgid "Drones"
msgstr "无人机"

#: gui/additionsPane.py:70
msgid "Fighters"
msgstr "铁骑机"

#: gui/additionsPane.py:76
msgid "Implants"
msgstr "植入体"

#: gui/additionsPane.py:88
msgid "Notes"
msgstr "备注"

#: gui/additionsPane.py:82
msgid "Projected"
msgstr ""

0 comments on commit 343f4a5

Please sign in to comment.