summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-05-26 12:04:10 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-05-26 12:04:10 +0200
commit230b816f6d790099ca5c3cb3727843ecf8bbabd1 (patch)
treee7cd9f4a23cc113087ade3960399dbcf18bb8205 /src
parente3886ded913ef52eaaebed65abaec853f0c27817 (diff)
downloadkcmldapmanager-230b816f6d790099ca5c3cb3727843ecf8bbabd1.tar.gz
kcmldapmanager-230b816f6d790099ca5c3cb3727843ecf8bbabd1.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>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt5
-rw-r--r--src/ldapmanager.desktop2
3 files changed, 7 insertions, 5 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
index 9d42aa3..5d88615 100644
--- a/src/CMakeL10n.txt
+++ b/src/CMakeL10n.txt
@@ -1,3 +1,8 @@
##### create translation templates ##############
tde_l10n_create_template( "messages/kcmldapmanager" )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/ldapmanager.desktop/"
+ SOURCES ldapmanager.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 71d7d26..dd9b197 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -42,7 +42,4 @@ tde_add_kpart( kcm_ldapmanager AUTOMOC
##### other data
-install(
- FILES ldapmanager.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
-)
+tde_create_translated_desktop( ldapmanager.desktop )
diff --git a/src/ldapmanager.desktop b/src/ldapmanager.desktop
index f21370a..f414087 100644
--- a/src/ldapmanager.desktop
+++ b/src/ldapmanager.desktop
@@ -11,7 +11,7 @@ X-TDE-ParentApp=kcontrol
[Desktop Entry]
Encoding=UTF-8
+Name=LDAP Realm Manager
Comment=A KControl tool for managing users, groups, and machines in LDAP realms
Keywords=ldap manager;
-Name=LDAP Realm Manager
Categories=Qt;TDE;X-TDE-settings-components;