diff options
author | daid <daid303@gmail.com> | 2013-09-26 19:10:10 +0400 |
---|---|---|
committer | daid <daid303@gmail.com> | 2013-09-26 19:10:10 +0400 |
commit | fee96a4a4f048df67d310d58c166c9000f01bd97 (patch) | |
tree | f7dd6a9b89a1eaf205b88f8d5c06b3a3903bc4ba /update_translations.sh | |
parent | 6452a463524fb80a43d9a1e4d8c760c897e82115 (diff) |
Update translation files and add update script.
Diffstat (limited to 'update_translations.sh')
-rw-r--r-- | update_translations.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/update_translations.sh b/update_translations.sh new file mode 100644 index 0000000000..ead6459e07 --- /dev/null +++ b/update_translations.sh @@ -0,0 +1,9 @@ +#/bin/sh +xgettext --language=Python --copyright-holder='David Braam' --keyword=_ --output=Cura/resources/locale/Cura.pot --from-code=UTF-8 `find Cura -name "*.py"` + +for LANG in `ls Cura/resources/locale`; do + if [ -e Cura/resources/locale/$LANG/LC_MESSAGES/Cura.po ]; then + msgmerge -U Cura/resources/locale/$LANG/LC_MESSAGES/Cura.po Cura/resources/locale/Cura.pot + msgfmt Cura/resources/locale/$LANG/LC_MESSAGES/Cura.po --output-file Cura/resources/locale/$LANG/LC_MESSAGES/Cura.mo + fi +done |