From a1066b66a7b397f1cdac40d6970b9640184fe8f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 22 May 2020 02:49:40 +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 (cherry picked from commit 296306a273438f476ab2266d1c03616de1fd5ef7) --- kregexpeditor/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'kregexpeditor/CMakeLists.txt') diff --git a/kregexpeditor/CMakeLists.txt b/kregexpeditor/CMakeLists.txt index 777fcaa..358ca6a 100644 --- a/kregexpeditor/CMakeLists.txt +++ b/kregexpeditor/CMakeLists.txt @@ -100,11 +100,13 @@ tde_install_icons( ) ##### other data ################################ -install( FILES kregexpeditor.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} +tde_create_translated_desktop( + SOURCE kregexpeditor.desktop + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kregexpeditor-desktops ) -install( FILES kregexpeditorgui.desktop +tde_create_translated_desktop( + SOURCE kregexpeditorgui.desktop DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kregexpeditor-desktops ) - -- cgit v1.2.1