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 --- kgpg/CMakeLists.txt | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'kgpg/CMakeLists.txt') diff --git a/kgpg/CMakeLists.txt b/kgpg/CMakeLists.txt index 3121421..ef72aab 100644 --- a/kgpg/CMakeLists.txt +++ b/kgpg/CMakeLists.txt @@ -57,11 +57,13 @@ install( FILES kgpg_anim.gif kgpg_docked.png DESTINATION ${DATA_INSTALL_DIR}/kgpg/pics ) -install( FILES kgpg.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} +tde_create_translated_desktop( + SOURCE kgpg.desktop + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kgpg-desktops ) -install( FILES kgpg.desktop +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/kgpg.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} ) @@ -69,13 +71,14 @@ install( FILES kgpg.rc listkeys.rc tips DESTINATION ${DATA_INSTALL_DIR}/kgpg ) -install( FILES encryptfile.desktop - encryptfolder.desktop - DESTINATION - ${DATA_INSTALL_DIR}/konqueror/servicemenus -) +foreach( _desktop encryptfile.desktop encryptfolder.desktop ) + tde_create_translated_desktop( + SOURCE ${_desktop} + DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kgpg-desktops + ) +endforeach() install( FILES kgpg.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) - -- cgit v1.2.1