diff options
author | daid <daid303@gmail.com> | 2014-03-17 13:27:46 +0400 |
---|---|---|
committer | daid <daid303@gmail.com> | 2014-03-17 13:27:46 +0400 |
commit | e17446726f7fbac31f97a0e51536571822987215 (patch) | |
tree | 2b75cbbb8aeb2a7fd66d9a2c87fe8f60b6d9bea1 /update_translations.sh | |
parent | f6998ad77a16ba36cdfc0a4fbbb1dfe6213f766d (diff) |
Update the language files.
Diffstat (limited to 'update_translations.sh')
-rw-r--r-- | update_translations.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/update_translations.sh b/update_translations.sh index ead6459e07..b7df672c38 100644 --- a/update_translations.sh +++ b/update_translations.sh @@ -1,9 +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"` +xgettext --language=Python --copyright-holder='David Braam' --keyword=_ --output=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 +for LANG in `ls resources/locale`; do + if [ -e resources/locale/$LANG/LC_MESSAGES/Cura.po ]; then + msgmerge -U resources/locale/$LANG/LC_MESSAGES/Cura.po resources/locale/Cura.pot + msgfmt resources/locale/$LANG/LC_MESSAGES/Cura.po --output-file resources/locale/$LANG/LC_MESSAGES/Cura.mo fi done |