CreatBotKlipperScreen/scripts/update_translation_files.sh
schpuntik b6fb4c1da2
Add Russian locales (#79)
* add russian locale

* update script update_translation_files.sh

* Defining Python Source Code Encodings

* Update Russian locale

* Update German locale

* update to PO files for new changes

* fix typo

* Update Russian locale

Co-authored-by: schpuntik <schpuntik@freenet.de>
2021-02-14 12:09:19 -05:00

14 lines
470 B
Bash

xgettext --keyword=_ --language=Python --add-comments --sort-output \
-o ks_includes/locales/KlipperScreen.pot \
*.py \
ks_includes/*.py \
panels/*.py \
ks_includes/KlipperScreen.conf
langs=(de_DE en fr_FR he_IL 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
done