diff options
author | Slávek Banko <[email protected]> | 2020-05-26 12:04:10 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-05-26 12:04:20 +0200 |
commit | db39860f7a7c962733532dd48c35a62c9f18ddaa (patch) | |
tree | 86f6123c46bdea444b56492f278e624098991811 | |
parent | ca1ef74423b0adf545023cba1ddf14efd0e3a302 (diff) | |
download | kcmldapmanager-db39860f7a7c962733532dd48c35a62c9f18ddaa.tar.gz kcmldapmanager-db39860f7a7c962733532dd48c35a62c9f18ddaa.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 <[email protected]>
(cherry picked from commit 230b816f6d790099ca5c3cb3727843ecf8bbabd1)
-rw-r--r-- | src/CMakeL10n.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/ldapmanager.desktop | 2 | ||||
-rw-r--r-- | translations/desktop_files/ldapmanager.desktop/ldapmanager.desktop.pot | 32 |
4 files changed, 39 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 61fc2de..e438728 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -40,7 +40,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; diff --git a/translations/desktop_files/ldapmanager.desktop/ldapmanager.desktop.pot b/translations/desktop_files/ldapmanager.desktop/ldapmanager.desktop.pot new file mode 100644 index 0000000..8ca79f3 --- /dev/null +++ b/translations/desktop_files/ldapmanager.desktop/ldapmanager.desktop.pot @@ -0,0 +1,32 @@ +# 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-05-26 12:02+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <[email protected]>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Name +#: ldapmanager.desktop:14 +msgid "LDAP Realm Manager" +msgstr "" + +#. Comment +#: ldapmanager.desktop:15 +msgid "A KControl tool for managing users, groups, and machines in LDAP realms" +msgstr "" + +#. Keywords +#: ldapmanager.desktop:16 +msgid "ldap manager;" +msgstr "" |