diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-05-01 19:22:24 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-05-01 19:22:24 +0200 |
commit | 094a30578fcf24aa9c60fab93b924651d90ef299 (patch) | |
tree | 49ba2042b092ed35b0e55c530f9d733be0aff777 | |
parent | 1633e7bde0cb563821654326c90a9e67fce42516 (diff) | |
download | knutclient-094a30578fcf24aa9c60fab93b924651d90ef299.tar.gz knutclient-094a30578fcf24aa9c60fab93b924651d90ef299.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>
-rw-r--r-- | src/CMakeL10n.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 5 | ||||
-rw-r--r-- | src/knutclient.desktop | 5 | ||||
-rw-r--r-- | translations/desktop_files/knutclient.desktop/cs.po | 32 | ||||
-rw-r--r-- | translations/desktop_files/knutclient.desktop/de.po | 32 | ||||
-rw-r--r-- | translations/desktop_files/knutclient.desktop/es.po | 32 | ||||
-rw-r--r-- | translations/desktop_files/knutclient.desktop/knutclient.desktop.pot | 32 |
7 files changed, 134 insertions, 9 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 9002759..36edd9b 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/knutclient" ) + +tde_l10n_create_template( + CATALOG "desktop_files/knutclient.desktop/" + SOURCES knutclient.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index c2d88ab..17ff33e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -55,7 +55,4 @@ install( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} ) -install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${APPS_INSTALL_DIR}/Utilities -) +tde_create_translated_desktop( ${PROJECT_NAME}.desktop ) diff --git a/src/knutclient.desktop b/src/knutclient.desktop index f1d259d..c2c32af 100644 --- a/src/knutclient.desktop +++ b/src/knutclient.desktop @@ -7,13 +7,8 @@ Icon=knutclient MiniIcon=knutclient X-DocPath=knutclient/index.html Name=KNutClient -Name[de]=KNutClient -Name[cs]=KNutClient GenericName=Network UPS Client Comment=Client for NUT -Comment[de]= -Comment[cs]=Klient pro UPS syst� NUT -Comment[es]=Cliente TDE para NUT Terminal=0 X-TDE-StartupNotify=true Categories=Qt;TDE;System;Monitor; diff --git a/translations/desktop_files/knutclient.desktop/cs.po b/translations/desktop_files/knutclient.desktop/cs.po new file mode 100644 index 0000000..f254a0d --- /dev/null +++ b/translations/desktop_files/knutclient.desktop/cs.po @@ -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-01 19:18+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: cs\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Name +#: knutclient.desktop:9 +msgid "KNutClient" +msgstr "KNutClient" + +#. GenericName +#: knutclient.desktop:10 +msgid "Network UPS Client" +msgstr "" + +#. Comment +#: knutclient.desktop:11 +msgid "Client for NUT" +msgstr "Klient pro UPS systém NUT" diff --git a/translations/desktop_files/knutclient.desktop/de.po b/translations/desktop_files/knutclient.desktop/de.po new file mode 100644 index 0000000..a5b4c15 --- /dev/null +++ b/translations/desktop_files/knutclient.desktop/de.po @@ -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-01 19:18+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Name +#: knutclient.desktop:9 +msgid "KNutClient" +msgstr "KNutClient" + +#. GenericName +#: knutclient.desktop:10 +msgid "Network UPS Client" +msgstr "" + +#. Comment +#: knutclient.desktop:11 +msgid "Client for NUT" +msgstr "" diff --git a/translations/desktop_files/knutclient.desktop/es.po b/translations/desktop_files/knutclient.desktop/es.po new file mode 100644 index 0000000..7804ceb --- /dev/null +++ b/translations/desktop_files/knutclient.desktop/es.po @@ -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-01 19:18+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: es\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Name +#: knutclient.desktop:9 +msgid "KNutClient" +msgstr "" + +#. GenericName +#: knutclient.desktop:10 +msgid "Network UPS Client" +msgstr "" + +#. Comment +#: knutclient.desktop:11 +msgid "Client for NUT" +msgstr "Cliente TDE para NUT" diff --git a/translations/desktop_files/knutclient.desktop/knutclient.desktop.pot b/translations/desktop_files/knutclient.desktop/knutclient.desktop.pot new file mode 100644 index 0000000..0f5d63a --- /dev/null +++ b/translations/desktop_files/knutclient.desktop/knutclient.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-01 19:18+0200\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" +"Language-Team: LANGUAGE <LL@li.org>\n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Name +#: knutclient.desktop:9 +msgid "KNutClient" +msgstr "" + +#. GenericName +#: knutclient.desktop:10 +msgid "Network UPS Client" +msgstr "" + +#. Comment +#: knutclient.desktop:11 +msgid "Client for NUT" +msgstr "" |