summaryrefslogtreecommitdiffstats
path: root/i18n
diff options
context:
space:
mode:
Diffstat (limited to 'i18n')
-rw-r--r--i18n/update_translations.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/i18n/update_translations.sh b/i18n/update_translations.sh
index 3c9f321..7a75a0b 100644
--- a/i18n/update_translations.sh
+++ b/i18n/update_translations.sh
@@ -1,14 +1,15 @@
#!/bin/bash
POFILE=$1
-intltool-extract --type=gettext/ini share/applications/mageiawelcome.desktop.in
+xgettext usr/share/applications/template_mageiawelcome.desktop -o desktop.pot
pylupdate5 qml/mageiawelcome.py -ts py.ts
lupdate mageiawelcome.pro -ts qml.ts
-lconvert -i py.ts qml.ts -o po/mageiawelcome.pot
+lconvert -i py.ts qml.ts -o main.pot
+msgcat *.pot > po/mageiawelcome.pot
-rm -rf py.ts qml.ts
+rm -rf py.ts qml.ts desktop.pot main.pot
if [[ $POFILE == "" ]]; then
for i in po/*.po