CreatBotKlipperScreen/scripts/update_translation_files.sh
BrownRhined 4bfd0d13fb
add Chinese Traditional (#392)
* add Chinese Traditional

add Chinese Traditional

* Update KlipperScreen.po

* Update translation script and run it.

Co-authored-by: Jordan
2022-01-03 01:26:12 -05:00

16 lines
457 B
Bash

xgettext --keyword=_ --language=Python --no-location --sort-output \
-o ks_includes/locales/KlipperScreen.pot \
*.py \
ks_includes/*.py \
panels/*.py \
ks_includes/defaults.conf
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