Create script to update translations with new words and update translation files

This commit is contained in:
Jordan Ruthe
2021-01-07 00:59:39 -05:00
parent 3fee1ff947
commit d11e9ec3a6
6 changed files with 730 additions and 616 deletions

View File

@@ -0,0 +1,13 @@
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=(en fr_FR he_IL 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