diff options
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 |