add Chinese Traditional (#392)

* add Chinese Traditional

add Chinese Traditional

* Update KlipperScreen.po

* Update translation script and run it.

Co-authored-by: Jordan
This commit is contained in:
BrownRhined
2022-01-03 14:26:12 +08:00
committed by GitHub
parent d19e303f0d
commit 4bfd0d13fb
5 changed files with 603 additions and 9 deletions

View File

@@ -5,9 +5,11 @@ xgettext --keyword=_ --language=Python --no-location --sort-output \
panels/*.py \
ks_includes/defaults.conf
langs=(de_DE en es fr_FR he_IL it ru_RU zh_CN)
for lang in ${langs[@]}; do
msgmerge ks_includes/locales/$lang/LC_MESSAGES/KlipperScreen.po \
ks_includes/locales/KlipperScreen.pot \
-o ks_includes/locales/$lang/LC_MESSAGES/KlipperScreen.po
for FILE in ks_includes/locales/*; do
if [ -d $FILE ]; then
echo $FILE
msgmerge $FILE/LC_MESSAGES/KlipperScreen.po \
ks_includes/locales/KlipperScreen.pot \
-o $FILE/LC_MESSAGES/KlipperScreen.po
fi
done