From 2f706891f32258c2b070471905f983e4585296d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 26 Jun 2020 11:36:35 +0200 Subject: 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 --- tqt3integration/module/CMakeL10n.txt | 7 +++++++ tqt3integration/module/CMakeLists.txt | 5 ++++- tqt3integration/module/tdeintegration.desktop | 1 + 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tqt3integration/module/CMakeL10n.txt (limited to 'tqt3integration/module') diff --git a/tqt3integration/module/CMakeL10n.txt b/tqt3integration/module/CMakeL10n.txt new file mode 100644 index 000000000..cc69d32c7 --- /dev/null +++ b/tqt3integration/module/CMakeL10n.txt @@ -0,0 +1,7 @@ +##### create translation templates ############## + +tde_l10n_create_template( + CATALOG "desktop_files/tdeintegration.desktop/" + SOURCES tdeintegration.desktop + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) diff --git a/tqt3integration/module/CMakeLists.txt b/tqt3integration/module/CMakeLists.txt index 1457020af..017da7224 100644 --- a/tqt3integration/module/CMakeLists.txt +++ b/tqt3integration/module/CMakeLists.txt @@ -25,7 +25,10 @@ link_directories( ##### service desktop file(s) ########################## -install( FILES tdeintegration.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) +tde_create_translated_desktop( + SOURCE tdeintegration.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kded +) ##### kded_tdeintegration (module) ##################### diff --git a/tqt3integration/module/tdeintegration.desktop b/tqt3integration/module/tdeintegration.desktop index 9a9b940d1..13c278905 100644 --- a/tqt3integration/module/tdeintegration.desktop +++ b/tqt3integration/module/tdeintegration.desktop @@ -10,4 +10,5 @@ X-TDE-Kded-autoload=false X-TDE-Kded-load-on-demand=true Name=TDE Integration Module + Comment=Module for integrating UI of non-TDE applications -- cgit v1.2.1