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 | |
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
-rw-r--r-- | i18n/update_translations.sh | 7 | ||||
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | usr/share/applications/mageiawelcome.desktop.in | 9 | ||||
-rw-r--r-- | usr/share/applications/template_mageiawelcome.desktop | 9 |
4 files changed, 14 insertions, 13 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 @@ -8,7 +8,7 @@ class BuildQm(build): for ts in glob.glob('i18n/*.ts'): os.system('lrelease {0} -qm {1}'.format(ts, (ts[:-2]+'qm'))) os.system("rm -f i18n/*.ts") - os.system('intltool-merge --desktop-style po usr/share/applications/mageiawelcome.desktop.in usr/share/applications/mageiawelcome.desktop') + os.system('msgfmt --desktop --template=usr/share/applications/template_mageiawelcome.desktop -d po -o usr/share/applications/mageiawelcome.desktop') data_files = [("bin",["usr/bin/mageiawelcome","usr/bin/mageiawelcome-launcher"]), diff --git a/usr/share/applications/mageiawelcome.desktop.in b/usr/share/applications/mageiawelcome.desktop.in deleted file mode 100644 index 5259fdd..0000000 --- a/usr/share/applications/mageiawelcome.desktop.in +++ /dev/null @@ -1,9 +0,0 @@ -[Desktop Entry] -_Name=Mageia Welcome -_GenericName=Mageia Welcome Screen -_Comment=Welcome screen for Mageia, that is displayed upon first users boot -Type=Application -Terminal=false -Icon=mgaonline -Exec=mageiawelcome -Categories=Utility;X-MageiaLinux-CrossDesktop; diff --git a/usr/share/applications/template_mageiawelcome.desktop b/usr/share/applications/template_mageiawelcome.desktop new file mode 100644 index 0000000..883dc55 --- /dev/null +++ b/usr/share/applications/template_mageiawelcome.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=Mageia Welcome +GenericName=Mageia Welcome Screen +Comment=Welcome screen for Mageia, that is displayed upon first users boot +Type=Application +Terminal=false +Icon=mgaonline +Exec=mageiawelcome +Categories=Utility;X-MageiaLinux-CrossDesktop; |