summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-03 10:31:46 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-03 10:31:59 +0200
commit77f505516b44dfef57eb0e1702b2bade99a9d956 (patch)
treeb91e40891034cd1d1d9794e2e0064829135ce7ec /src
parent67e18f5fcebdd7ee1d4c4598fdd1b1ebea9b23e1 (diff)
downloadkvkbd-77f505516b44dfef57eb0e1702b2bade99a9d956.tar.gz
kvkbd-77f505516b44dfef57eb0e1702b2bade99a9d956.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> (cherry picked from commit b262eedefe27f773fc0613e761820cd9880cd38f)
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt5
-rw-r--r--src/kvkbd.desktop1
3 files changed, 6 insertions, 5 deletions
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