Update translation files
This commit is contained in:
1 parent
b8cf60bd2c
commit
6bb712f970
33 files changed
+2346
-308
No files matched your search
@@ -1,16 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Update pot
|
||||
xgettext --keyword=_ --keyword=_n:1,2 --language=Python --no-location --sort-output \
|
||||
-o ks_includes/locales/KlipperScreen.pot \
|
||||
*.py \
|
||||
ks_includes/*.py \
|
||||
panels/*.py \
|
||||
ks_includes/defaults.conf
|
||||
|
||||
# Update po
|
||||
for FILE in ks_includes/locales/*; do
|
||||
if [ -d $FILE ]; then
|
||||
echo $FILE
|
||||
msgmerge $FILE/LC_MESSAGES/KlipperScreen.po \
|
||||
echo Processing $FILE
|
||||
msgmerge -q $FILE/LC_MESSAGES/KlipperScreen.po \
|
||||
ks_includes/locales/KlipperScreen.pot \
|
||||
-o $FILE/LC_MESSAGES/KlipperScreen.po
|
||||
# Clean Fuzzy translations
|
||||
msgattrib --clear-fuzzy --empty -o $FILE/LC_MESSAGES/KlipperScreen.po $FILE/LC_MESSAGES/KlipperScreen.po
|
||||
# Compile mo
|
||||
msgfmt -o $FILE/LC_MESSAGES/KlipperScreen.mo $FILE/LC_MESSAGES/KlipperScreen.po
|
||||
fi
|
||||
done
|
||||
Reference in new issue
Block a user