From 2d5bba7248e81f0b901ed2637867418b4bce8a8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 21 Jun 2020 10:48:34 +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 --- CMakeL10n.txt | 23 ++++++++++++++++ src/CMakeL10n.txt | 6 +++++ src/CMakeLists.txt | 4 +-- src/kdbusnotification-autostart.desktop | 4 +-- .../kdbusnotification-autostart.desktop.pot | 27 +++++++++++++++++++ 5 files changed, 59 insertions(+), 5 deletions(-) create mode 100644 CMakeL10n.txt create mode 100644 src/CMakeL10n.txt create mode 100644 translations/desktop_files/kdbusnotification-autostart.desktop/kdbusnotification-autostart.desktop.pot diff --git a/CMakeL10n.txt b/CMakeL10n.txt new file mode 100644 index 0000000..e4b7476 --- /dev/null +++ b/CMakeL10n.txt @@ -0,0 +1,23 @@ +################################################# +# +# (C) 2020 Slávek Banko +# slavek.banko (AT) axis.cz +# +# Improvements and feedback are welcome +# +# This file is released under GPL >= 2 +# +################################################# + +cmake_minimum_required( VERSION 2.8 ) + + +##### include our cmake modules ################# + +set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" ) +include( TDEL10n ) + + +##### create translation templates ############## + +tde_l10n_auto_add_subdirectories( ) 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; - diff --git a/translations/desktop_files/kdbusnotification-autostart.desktop/kdbusnotification-autostart.desktop.pot b/translations/desktop_files/kdbusnotification-autostart.desktop/kdbusnotification-autostart.desktop.pot new file mode 100644 index 0000000..ee703df --- /dev/null +++ b/translations/desktop_files/kdbusnotification-autostart.desktop/kdbusnotification-autostart.desktop.pot @@ -0,0 +1,27 @@ +# 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-06-21 10:43+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" + +#. Name +#: kdbusnotification-autostart.desktop:3 +msgid "kdbusnotification" +msgstr "" + +#. Comment +#: kdbusnotification-autostart.desktop:4 +msgid "DBUS notification service daemon" +msgstr ""