diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-07-24 09:56:16 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-07-24 09:56:16 +0200 |
commit | 4b46227c04deca66c831446190f9f6bb98511996 (patch) | |
tree | cf06397e1514c686f545d37fe003c1b36db4d248 | |
parent | f1a89342b155d967f290cccfcacd3de8261b350a (diff) | |
download | kdpkg-4b46227c04deca66c831446190f9f6bb98511996.tar.gz kdpkg-4b46227c04deca66c831446190f9f6bb98511996.zip |
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules.
+ Added creation of translated desktop files during build.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r-- | CMakeL10n.txt | 5 | ||||
-rw-r--r-- | kdpkg-install/CMakeLists.txt | 5 | ||||
-rw-r--r-- | kdpkg-install/kdpkg-install.desktop | 11 | ||||
-rw-r--r-- | kdpkg/CMakeLists.txt | 5 | ||||
-rw-r--r-- | kdpkg/kdpkg.desktop | 11 | ||||
-rw-r--r-- | translations/desktop_files/kdpkg-desktops.pot | 37 |
6 files changed, 54 insertions, 20 deletions
diff --git a/CMakeL10n.txt b/CMakeL10n.txt index a525b71..8b2b199 100644 --- a/CMakeL10n.txt +++ b/CMakeL10n.txt @@ -21,3 +21,8 @@ include( TDEL10n ) ##### create translation templates ############## tde_l10n_auto_add_subdirectories( ) + +tde_l10n_create_template( + CATALOG "desktop_files/kdpkg-desktops" + SOURCES *.desktop +) diff --git a/kdpkg-install/CMakeLists.txt b/kdpkg-install/CMakeLists.txt index 0dc2bf9..9ee0c1c 100644 --- a/kdpkg-install/CMakeLists.txt +++ b/kdpkg-install/CMakeLists.txt @@ -36,10 +36,7 @@ tde_add_executable( ${PROJECT_NAME}-install AUTOMOC ##### other data -install( - FILES ${PROJECT_NAME}-install.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} -) +tde_create_translated_desktop( ${PROJECT_NAME}-install.desktop ) install( PROGRAMS ${CMAKE_CURRENT_SOURCE_DIR}/sh/${PROJECT_NAME}-sh diff --git a/kdpkg-install/kdpkg-install.desktop b/kdpkg-install/kdpkg-install.desktop index 20a22ac..ec20c56 100644 --- a/kdpkg-install/kdpkg-install.desktop +++ b/kdpkg-install/kdpkg-install.desktop @@ -1,12 +1,11 @@ [Desktop Entry] -Encoding=UTF-8 -Icon=kdpkg -Type=Application -Exec=su-to-root -X -c "kdpkg-install %U" - Name=Debian Package Install + Comment=TDE-based Debian package installation utility +Encoding=UTF-8 +Type=Application +Icon=kdpkg +Exec=su-to-root -X -c "kdpkg-install %U" MimeType=application/x-deb;application/x-debian-package; - Categories=Qt;TDE;Utility diff --git a/kdpkg/CMakeLists.txt b/kdpkg/CMakeLists.txt index cf6bfc9..2da1f20 100644 --- a/kdpkg/CMakeLists.txt +++ b/kdpkg/CMakeLists.txt @@ -32,7 +32,4 @@ tde_add_executable( ${PROJECT_NAME} AUTOMOC ##### other data -install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} -) +tde_create_translated_desktop( ${PROJECT_NAME}.desktop ) diff --git a/kdpkg/kdpkg.desktop b/kdpkg/kdpkg.desktop index ead1783..0abeb74 100644 --- a/kdpkg/kdpkg.desktop +++ b/kdpkg/kdpkg.desktop @@ -1,12 +1,11 @@ [Desktop Entry] -Encoding=UTF-8 -Icon=kdpkg -Type=Application -Exec=kdpkg %U - Name=Debian Package Information + Comment=TDE-based Debian package information and installation utility +Encoding=UTF-8 +Type=Application +Icon=kdpkg +Exec=kdpkg %U MimeType=application/x-deb;application/x-debian-package; - Categories=Qt;TDE;Utility diff --git a/translations/desktop_files/kdpkg-desktops.pot b/translations/desktop_files/kdpkg-desktops.pot new file mode 100644 index 0000000..aeb5458 --- /dev/null +++ b/translations/desktop_files/kdpkg-desktops.pot @@ -0,0 +1,37 @@ +# SOME DESCRIPTIVE TITLE. +# This file is put in the public domain. +# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-07-24 09:53+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Name +#: kdpkg-install/kdpkg-install.desktop:2 +msgid "Debian Package Install" +msgstr "" + +#. Comment +#: kdpkg-install/kdpkg-install.desktop:4 +msgid "TDE-based Debian package installation utility" +msgstr "" + +#. Name +#: kdpkg/kdpkg.desktop:2 +msgid "Debian Package Information" +msgstr "" + +#. Comment +#: kdpkg/kdpkg.desktop:4 +msgid "TDE-based Debian package information and installation utility" +msgstr "" |