From 0d3043b6308af148da06ac14c53defc4b1e7e138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 12 Jul 2020 16:15:10 +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 --- kontact/profiles/KontactDefaults/CMakeLists.txt | 13 ++++++++++--- kontact/profiles/OutlookDefaults/CMakeLists.txt | 13 ++++++++++--- 2 files changed, 20 insertions(+), 6 deletions(-) (limited to 'kontact/profiles') diff --git a/kontact/profiles/KontactDefaults/CMakeLists.txt b/kontact/profiles/KontactDefaults/CMakeLists.txt index 4d313d0e3..424cad139 100644 --- a/kontact/profiles/KontactDefaults/CMakeLists.txt +++ b/kontact/profiles/KontactDefaults/CMakeLists.txt @@ -9,6 +9,13 @@ # ################################################# -install( FILES - profile.cfg kontactrc korganizerrc - DESTINATION ${DATA_INSTALL_DIR}/kontact/profiles/KontactDefaults ) +tde_create_translated_desktop( + SOURCE profile.cfg + DESTINATION ${DATA_INSTALL_DIR}/kontact/profiles/KontactDefaults + PO_DIR kontact-desktops +) + +install( + FILES kontactrc korganizerrc + DESTINATION ${DATA_INSTALL_DIR}/kontact/profiles/KontactDefaults +) diff --git a/kontact/profiles/OutlookDefaults/CMakeLists.txt b/kontact/profiles/OutlookDefaults/CMakeLists.txt index ff3986bb3..3ae1fb927 100644 --- a/kontact/profiles/OutlookDefaults/CMakeLists.txt +++ b/kontact/profiles/OutlookDefaults/CMakeLists.txt @@ -9,6 +9,13 @@ # ################################################# -install( FILES - profile.cfg kontactrc korganizerrc - DESTINATION ${DATA_INSTALL_DIR}/kontact/profiles/OutlookDefaults ) +tde_create_translated_desktop( + SOURCE profile.cfg + DESTINATION ${DATA_INSTALL_DIR}/kontact/profiles/OutlookDefaults + PO_DIR kontact-desktops +) + +install( + FILES kontactrc korganizerrc + DESTINATION ${DATA_INSTALL_DIR}/kontact/profiles/OutlookDefaults +) -- cgit v1.2.1