diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-05-02 15:34:40 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-05-02 15:34:54 +0200 |
commit | a9196e50f775efd50ee6f364736e1b7bf89774f9 (patch) | |
tree | 8884400fbcd6694075cee39cb5fcd1b2afe763db | |
parent | e0f2629d5af6ed5499917dc162b45c8f02dddb04 (diff) | |
download | ksensors-a9196e50f775efd50ee6f364736e1b7bf89774f9.tar.gz ksensors-a9196e50f775efd50ee6f364736e1b7bf89774f9.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 eff7b7b0b2e31516eee78d922693abce6e8d3b38)
-rw-r--r-- | src/CMakeL10n.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 9 | ||||
-rw-r--r-- | src/ksensors.desktop | 4 | ||||
-rw-r--r-- | translations/desktop_files/ksensors.desktop/de.po | 32 | ||||
-rw-r--r-- | translations/desktop_files/ksensors.desktop/fr.po | 33 | ||||
-rw-r--r-- | translations/desktop_files/ksensors.desktop/ksensors.desktop.pot | 32 |
6 files changed, 105 insertions, 10 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 35af26a..77fc98c 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/ksensors" ) + +tde_l10n_create_template( + CATALOG "desktop_files/ksensors.desktop/" + SOURCES ksensors.desktop +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f841d12..99d7c03 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -50,12 +50,9 @@ install( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} ) -install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${AUTOSTART_INSTALL_DIR} -) +tde_create_translated_desktop( ${PROJECT_NAME}.desktop ) install( - FILES ${PROJECT_NAME}.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} + FILES ${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}.desktop + DESTINATION ${AUTOSTART_INSTALL_DIR} ) diff --git a/src/ksensors.desktop b/src/ksensors.desktop index ed505ef..06f5d27 100644 --- a/src/ksensors.desktop +++ b/src/ksensors.desktop @@ -6,12 +6,8 @@ Icon=ksensors Type=Application Comment=Monitoring of temperatures, voltages and fan speeds -Comment[de]=Überwachung von Temperaturen, Spannungen und Lüfterdrehzahlen -Comment[fr]=Surveillance de la temperature, du voltage et de la vitesse des ventilateurs GenericName=Lm-Sensors Frontend -GenericName[de]=Grafische Oberfläche für LM-Sensors -GenericName[fr]=Interface graphique pour lm-sensors X-DocPath=ksensors/index.html X-TDE-autostart-after=panel diff --git a/translations/desktop_files/ksensors.desktop/de.po b/translations/desktop_files/ksensors.desktop/de.po new file mode 100644 index 0000000..dd91a72 --- /dev/null +++ b/translations/desktop_files/ksensors.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-02 15:23+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 +#: ksensors.desktop:3 +msgid "KSensors" +msgstr "" + +#. Comment +#: ksensors.desktop:8 +msgid "Monitoring of temperatures, voltages and fan speeds" +msgstr "Überwachung von Temperaturen, Spannungen und Lüfterdrehzahlen" + +#. GenericName +#: ksensors.desktop:10 +msgid "Lm-Sensors Frontend" +msgstr "Grafische Oberfläche für LM-Sensors" diff --git a/translations/desktop_files/ksensors.desktop/fr.po b/translations/desktop_files/ksensors.desktop/fr.po new file mode 100644 index 0000000..0365bd2 --- /dev/null +++ b/translations/desktop_files/ksensors.desktop/fr.po @@ -0,0 +1,33 @@ +# 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-02 15:23+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: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#. Name +#: ksensors.desktop:3 +msgid "KSensors" +msgstr "" + +#. Comment +#: ksensors.desktop:8 +msgid "Monitoring of temperatures, voltages and fan speeds" +msgstr "" +"Surveillance de la temperature, du voltage et de la vitesse des ventilateurs" + +#. GenericName +#: ksensors.desktop:10 +msgid "Lm-Sensors Frontend" +msgstr "Interface graphique pour lm-sensors" diff --git a/translations/desktop_files/ksensors.desktop/ksensors.desktop.pot b/translations/desktop_files/ksensors.desktop/ksensors.desktop.pot new file mode 100644 index 0000000..b584624 --- /dev/null +++ b/translations/desktop_files/ksensors.desktop/ksensors.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-02 15:23+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 +#: ksensors.desktop:3 +msgid "KSensors" +msgstr "" + +#. Comment +#: ksensors.desktop:8 +msgid "Monitoring of temperatures, voltages and fan speeds" +msgstr "" + +#. GenericName +#: ksensors.desktop:10 +msgid "Lm-Sensors Frontend" +msgstr "" |