summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-05-02 15:34:40 +0200
committerSlávek Banko <[email protected]>2020-05-02 15:34:40 +0200
commiteff7b7b0b2e31516eee78d922693abce6e8d3b38 (patch)
treec171bebeff2fbc2d7dca2da8bbd953563ec33fe3 /src
parentad7382973dbb427e1017c8a343fbe0c9af64fe4e (diff)
downloadksensors-eff7b7b0b2e31516eee78d922693abce6e8d3b38.tar.gz
ksensors-eff7b7b0b2e31516eee78d922693abce6e8d3b38.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]>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt5
-rw-r--r--src/CMakeLists.txt9
-rw-r--r--src/ksensors.desktop4
3 files changed, 8 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