diff options
author | Yuri Chornoivan <yurchor@ukr.net> | 2018-12-21 20:13:29 +0200 |
---|---|---|
committer | Yuri Chornoivan <yurchor@ukr.net> | 2018-12-21 20:13:29 +0200 |
commit | 0b8d8572c6c68753c54622551b2ba40f431d8c17 (patch) | |
tree | e6e79c821adb1a59fdb9c7a7358731633b93f0c6 /i18n/update_translations.sh | |
parent | 81ea21e527726ec288bffc6fdc51111131199ea6 (diff) | |
download | mageiawelcome-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.sh | 7 |
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 |