Welcome to mirror list, hosted at ThFree Co, Russian Federation.

update_translations.sh - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b7df672c3844668368a763d0c3456933e26ee9e1 (plain)
1
2
3
4
5
6
7
8
9
#/bin/sh
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 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