From 77f505516b44dfef57eb0e1702b2bade99a9d956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 3 May 2020 10:31:46 +0200 Subject: [PATCH] Desktop file translations: + Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko (cherry picked from commit b262eedefe27f773fc0613e761820cd9880cd38f) --- src/CMakeL10n.txt | 5 +++ src/CMakeLists.txt | 5 +-- src/kvkbd.desktop | 1 - .../kvkbd.desktop/kvkbd.desktop.pot | 32 +++++++++++++++++++ 4 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 translations/desktop_files/kvkbd.desktop/kvkbd.desktop.pot diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index e9e8cd3..f246462 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/kvkbd" ) + +tde_l10n_create_template( + CATALOG "desktop_files/kvkbd.desktop/" + SOURCES kvkbd.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6df8e96..dd369e9 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -47,7 +47,4 @@ install( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME}/pics ) -install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} -) +tde_create_translated_desktop( ${PROJECT_NAME}.desktop ) diff --git a/src/kvkbd.desktop b/src/kvkbd.desktop index fb03a02..dfcff05 100644 --- a/src/kvkbd.desktop +++ b/src/kvkbd.desktop @@ -1,7 +1,6 @@ [Desktop Entry] Encoding=UTF-8 Name=Kvkbd -Name[xx]=xxkvkbdxx GenericName=Virtual Keyboard Exec=kvkbd Icon=kvkbd diff --git a/translations/desktop_files/kvkbd.desktop/kvkbd.desktop.pot b/translations/desktop_files/kvkbd.desktop/kvkbd.desktop.pot new file mode 100644 index 0000000..7b5a14a --- /dev/null +++ b/translations/desktop_files/kvkbd.desktop/kvkbd.desktop.pot @@ -0,0 +1,32 @@ +# SOME DESCRIPTIVE TITLE. +# This file is put in the public domain. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2020-05-03 10:29+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Name +#: kvkbd.desktop:3 +msgid "Kvkbd" +msgstr "" + +#. GenericName +#: kvkbd.desktop:4 +msgid "Virtual Keyboard" +msgstr "" + +#. Comment +#: kvkbd.desktop:8 +msgid "A virtual keyboard for TDE" +msgstr ""