From a084db175509b58e57a81d50b1688709f19758bf Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= <slavek.banko@axis.cz>
Date: Wed, 27 May 2020 03:12:08 +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 <slavek.banko@axis.cz>
---
 kig/tdefile/CMakeLists.txt | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

(limited to 'kig/tdefile/CMakeLists.txt')

diff --git a/kig/tdefile/CMakeLists.txt b/kig/tdefile/CMakeLists.txt
index ec7241ca..9d4ad579 100644
--- a/kig/tdefile/CMakeLists.txt
+++ b/kig/tdefile/CMakeLists.txt
@@ -44,7 +44,10 @@ tde_add_kpart( tdefile_kig AUTOMOC
 
 ##### other data
 
-install(
-    FILES tdefile_drgeo.desktop tdefile_kig.desktop
+foreach( _tdefile tdefile_drgeo.desktop tdefile_kig.desktop )
+  tde_create_translated_desktop(
+    SOURCE ${_tdefile}
     DESTINATION ${SERVICES_INSTALL_DIR}
-)
+    PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kig-tdefile
+  )
+endforeach()
-- 
cgit v1.2.1