From 49171c17078464b11cb99be025a28856c225429b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Mon, 1 Feb 2021 01:10:54 +0100 Subject: [PATCH] Update CMake rules for merging translations into Standard and Redmond ksplash themes. 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 4d1cd4d95deed07ea48842b618fc4de61f6694ee) --- ksplashml/themeengine/redmond/CMakeLists.txt | 7 ++++++- ksplashml/themeengine/standard/CMakeLists.txt | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ksplashml/themeengine/redmond/CMakeLists.txt b/ksplashml/themeengine/redmond/CMakeLists.txt index 52bc35732..7284c40be 100644 --- a/ksplashml/themeengine/redmond/CMakeLists.txt +++ b/ksplashml/themeengine/redmond/CMakeLists.txt @@ -25,7 +25,12 @@ link_directories( ##### other data ################################ -install( FILES Theme.rc DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Redmond ) +tde_create_translated_desktop( + SOURCE Theme.rc + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Redmond + PO_DIR ksplash-themes +) + tde_create_translated_desktop( SOURCE ksplashredmond.desktop DESTINATION ${SERVICES_INSTALL_DIR} diff --git a/ksplashml/themeengine/standard/CMakeLists.txt b/ksplashml/themeengine/standard/CMakeLists.txt index 8aca3a57e..a2119c5e3 100644 --- a/ksplashml/themeengine/standard/CMakeLists.txt +++ b/ksplashml/themeengine/standard/CMakeLists.txt @@ -26,7 +26,12 @@ link_directories( ##### other data ################################ -install( FILES Theme.rc DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Standard ) +tde_create_translated_desktop( + SOURCE Theme.rc + DESTINATION ${DATA_INSTALL_DIR}/ksplash/Themes/Standard + PO_DIR ksplash-themes +) + tde_create_translated_desktop( SOURCE ksplashstandard.desktop DESTINATION ${SERVICES_INSTALL_DIR}