summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-25 15:42:19 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-25 15:42:33 +0200
commit2cc8190f867987c262804c30735a75bbb801176f (patch)
tree03f8a37fe40637cf90456f12790aa9fdf2bb318d /src
parent6c64b68082c6c9dc92eb9e4bc66613c30b8f8589 (diff)
downloadkcmldapcontroller-2cc8190f867987c262804c30735a75bbb801176f.tar.gz
kcmldapcontroller-2cc8190f867987c262804c30735a75bbb801176f.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 3b23a90dfc3eb1feeb5d4755b867a31ef425e297)
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt5
2 files changed, 6 insertions, 4 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index e14c5a7..b1b60ef 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/kcmldapcontroller" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/ldapcontroller.desktop/"
+ SOURCES ldapcontroller.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d061fb2..9d07317 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -45,7 +45,4 @@ tde_add_kpart( kcm_ldapcontroller AUTOMOC
##### other data
-install(
- FILES ldapcontroller.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( ldapcontroller.desktop )