CreatBotKlipperScreen/scripts/update_translation_files.sh

14 lines
469 B
Bash

xgettext --keyword=_ --language=Python --no-location --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