summaryrefslogtreecommitdiffstats
path: root/i18n/update_translations.sh
diff options
context:
space:
mode:
authorYuri Chornoivan <yurchor@ukr.net>2018-12-21 20:13:29 +0200
committerYuri Chornoivan <yurchor@ukr.net>2018-12-21 20:13:29 +0200
commit0b8d8572c6c68753c54622551b2ba40f431d8c17 (patch)
treee6e79c821adb1a59fdb9c7a7358731633b93f0c6 /i18n/update_translations.sh
parent81ea21e527726ec288bffc6fdc51111131199ea6 (diff)
downloadmageiawelcome-0b8d8572c6c68753c54622551b2ba40f431d8c17.tar
mageiawelcome-0b8d8572c6c68753c54622551b2ba40f431d8c17.tar.gz
mageiawelcome-0b8d8572c6c68753c54622551b2ba40f431d8c17.tar.bz2
mageiawelcome-0b8d8572c6c68753c54622551b2ba40f431d8c17.tar.xz
mageiawelcome-0b8d8572c6c68753c54622551b2ba40f431d8c17.zip
Fix desktop file localization
Diffstat (limited to 'i18n/update_translations.sh')
-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