From de729001806736370b77747730c11d7da3a72ced Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 24 May 2020 15:27:28 +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 116937ea03e3a562da66dade385a11439babe7e5) --- src/CMakeL10n.txt | 5 +++ src/CMakeLists.txt | 5 +-- .../ldapbonding.desktop.pot | 32 +++++++++++++++++++ 3 files changed, 38 insertions(+), 4 deletions(-) create mode 100644 translations/desktop_files/ldapbonding.desktop/ldapbonding.desktop.pot diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index fcf0eeb..5c62ffd 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/kcmldap" ) + +tde_l10n_create_template( + CATALOG "desktop_files/ldapbonding.desktop/" + SOURCES ldapbonding.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3c25e30..c70c23b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -42,7 +42,4 @@ tde_add_kpart( kcm_ldapbonding AUTOMOC ##### other data -install( - FILES ldapbonding.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} -) +tde_create_translated_desktop( ldapbonding.desktop ) diff --git a/translations/desktop_files/ldapbonding.desktop/ldapbonding.desktop.pot b/translations/desktop_files/ldapbonding.desktop/ldapbonding.desktop.pot new file mode 100644 index 0000000..03958b7 --- /dev/null +++ b/translations/desktop_files/ldapbonding.desktop/ldapbonding.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-24 15:19+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" + +#. Comment +#: ldapbonding.desktop:16 +msgid "A KControl tool for managing TDE bonding to LDAP realms." +msgstr "" + +#. Keywords +#: ldapbonding.desktop:17 +msgid "ldap manager;" +msgstr "" + +#. Name +#: ldapbonding.desktop:18 +msgid "LDAP Realm Bonding" +msgstr ""