Create script to update translations with new words and update translation files
This commit is contained in:
13
scripts/update_translation_files.sh
Normal file
13
scripts/update_translation_files.sh
Normal 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
|
Reference in New Issue
Block a user