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

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'update_translations.sh')
-rw-r--r--update_translations.sh9
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