From 296306a273438f476ab2266d1c03616de1fd5ef7 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 --- tdewallet/konfigurator/CMakeLists.txt | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'tdewallet/konfigurator/CMakeLists.txt') diff --git a/tdewallet/konfigurator/CMakeLists.txt b/tdewallet/konfigurator/CMakeLists.txt index d9283f8..b640df8 100644 --- a/tdewallet/konfigurator/CMakeLists.txt +++ b/tdewallet/konfigurator/CMakeLists.txt @@ -33,13 +33,15 @@ tde_add_kpart( kcm_tdewallet AUTOMOC ##### other data ################################ -install( FILES tdewalletconfig.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} +tde_create_translated_desktop( + SOURCE tdewalletconfig.desktop + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdewallet-desktops ) -install( - FILES - tdewallet_config.desktop - tdewalletmanager_show.desktop - DESTINATION ${SERVICES_INSTALL_DIR} -) +foreach( _desktop tdewallet_config.desktop tdewalletmanager_show.desktop ) + tde_create_translated_desktop( + SOURCE ${_desktop} + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdewallet-desktops + ) +endforeach() -- cgit v1.2.1