chiark / gitweb /
Some small changes suggested by ErikDeBruijn
[cura.git] / update_translations.sh
1 #/bin/sh
2 xgettext --language=Python --copyright-holder='David Braam' --keyword=_ --output=Cura/resources/locale/Cura.pot --from-code=UTF-8 `find Cura -name "*.py"`
3
4 for LANG in `ls Cura/resources/locale`; do
5         if [ -e Cura/resources/locale/$LANG/LC_MESSAGES/Cura.po ]; then
6                 msgmerge -U Cura/resources/locale/$LANG/LC_MESSAGES/Cura.po Cura/resources/locale/Cura.pot
7                 msgfmt Cura/resources/locale/$LANG/LC_MESSAGES/Cura.po --output-file Cura/resources/locale/$LANG/LC_MESSAGES/Cura.mo
8         fi
9 done