summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-21 10:48:34 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-21 10:48:34 +0200
commit2d5bba7248e81f0b901ed2637867418b4bce8a8d (patch)
treefc3ca8c892f30ef062d298d3c8f78f872b38e7bc /src
parenteb8eab39794cc4a7fbb11b66a4f8d2d6f4d868f2 (diff)
downloadkdbusnotification-2d5bba7248e81f0b901ed2637867418b4bce8a8d.tar.gz
kdbusnotification-2d5bba7248e81f0b901ed2637867418b4bce8a8d.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>
Diffstat (limited to 'src')
-rw-r--r--src/CMakeL10n.txt6
-rw-r--r--src/CMakeLists.txt4
-rw-r--r--src/kdbusnotification-autostart.desktop4
3 files changed, 9 insertions, 5 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt
new file mode 100644
index 0000000..1ab81f1
--- /dev/null
+++ b/src/CMakeL10n.txt
@@ -0,0 +1,6 @@
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/kdbusnotification-autostart.desktop/"
+ SOURCES kdbusnotification-autostart.desktop
+)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f5fa9c5..22fd2a3 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -3,7 +3,7 @@ add_subdirectory( daemon )
##### other data
-install(
- FILES kdbusnotification-autostart.desktop
+tde_create_translated_desktop(
+ SOURCE kdbusnotification-autostart.desktop
DESTINATION ${AUTOSTART_INSTALL_DIR}
)
diff --git a/src/kdbusnotification-autostart.desktop b/src/kdbusnotification-autostart.desktop
index b5ad759..57fd1c6 100644
--- a/src/kdbusnotification-autostart.desktop
+++ b/src/kdbusnotification-autostart.desktop
@@ -1,13 +1,11 @@
[Desktop Entry]
Encoding=UTF-8
Name=kdbusnotification
-Name[xx]=xxkdbusnotificationxx
+Comment=DBUS notification service daemon
Exec=notification-daemon-tde
Icon=bell
Type=Application
-Comment=DBUS notification service daemon
X-TDE-autostart-phase=1
X-TDE-StartupNotify=false
X-TDE-UniqueApplet=true
Categories=System;
-