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

@@ -12,13 +12,14 @@ For Linux and macOS users these tools might be available out-of-box.
### To generate new template for translation:
```console
$ find */ *.py -name "*.py" | xgettext -o locale/lang.pot -d lang -k_t -f -
$ find gui/ *.py -name "*.py" | xgettext --from-code=UTF-8 -o locale/lang.pot -d lang -k_t -f -
```
explanation:
* `find */ *.py -name "*.py"`: collect all `.py` file path in root folder and all sub-folder, write it to stdout
* `find gui/ *.py -name "*.py"`: collect all `.py` file path in `gui` folder and all sub-folders, write it to stdout
* `xgettext`: a utility looking for keyword and put string literals in a specific format for human translation
* `--from-code=UTF-8`: designates encoding of files
* `-o locale/lang.pot`: let `xgettext` write to `locale/lang.pot`
* `-d lang`: default language domain is `lang`
* `-k_t`: besides default keyword (including `_`, see `info xgettext` for detail), also look for `_t`

View File

@@ -1,21 +0,0 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR ORGANIZATION
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2020-05-14 01:11-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: pygettext.py 1.5\n"
#: ./gui/mainFrame.py:189
msgid "Market"
msgstr "de Market"

View File

@@ -0,0 +1,58 @@
# English translations for PACKAGE package.
# Copyright (C) 2020 THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# <holmes.ryan.90@gmail.com>, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-06-29 20:32-0400\n"
"PO-Revision-Date: 2020-06-29 20:35-0400\n"
"Last-Translator: <holmes.ryan.90@gmail.com>\n"
"Language-Team: English\n"
"Language: en_US\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=ASCII\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: gui/builtinContextMenus/envEffectAdd.py:106
msgid "ContextMenu|ProjectedEffectManipulation|Black Hole"
msgstr "Black Hole"
#: gui/builtinContextMenus/envEffectAdd.py:107
msgid "ContextMenu|ProjectedEffectManipulation|Cataclysmic Variable"
msgstr "Cataclysmic Variable"
#: gui/builtinContextMenus/envEffectAdd.py:108
msgid "ContextMenu|ProjectedEffectManipulation|Magnetar"
msgstr "Magnetar"
#: gui/builtinContextMenus/envEffectAdd.py:109
msgid "ContextMenu|ProjectedEffectManipulation|Pulsar"
msgstr "Pulsar"
#: gui/builtinContextMenus/envEffectAdd.py:110
msgid "ContextMenu|ProjectedEffectManipulation|Red Giant"
msgstr "Red Giant"
#: gui/builtinContextMenus/envEffectAdd.py:111
msgid "ContextMenu|ProjectedEffectManipulation|Wolf Rayet"
msgstr "Wolf Rayet"
#: gui/builtinContextMenus/envEffectAdd.py:113
msgid "ContextMenu|ProjectedEffectManipulation|Sansha Incursion"
msgstr "Sansha Incursion"
#: gui/builtinContextMenus/envEffectAdd.py:116
msgid "ContextMenu|ProjectedEffectManipulation|Triglavian Invasion"
msgstr "Triglavian Invasion"
#: gui/builtinContextMenus/envEffectAdd.py:133
msgid "ContextMenu|ProjectedEffectManipulation|System Effects"
msgstr "System Effects"
#: gui/builtinContextMenus/envEffectAdd.py:133
msgid "ContextMenu|ProjectedEffectManipulation|Effects"
msgstr "Effects"

File diff suppressed because it is too large Load Diff