From 4b7a4e17362206fd2eade35ba947a850263b0ea1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= <slavek.banko@axis.cz>
Date: Sun, 7 Jun 2020 18:25:52 +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>
---
 interfaces/tdemediaplayer/CMakeLists.txt | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

(limited to 'interfaces/tdemediaplayer/CMakeLists.txt')

diff --git a/interfaces/tdemediaplayer/CMakeLists.txt b/interfaces/tdemediaplayer/CMakeLists.txt
index fbbcf1e3b..ba0a8c475 100644
--- a/interfaces/tdemediaplayer/CMakeLists.txt
+++ b/interfaces/tdemediaplayer/CMakeLists.txt
@@ -38,9 +38,16 @@ install( FILES
 
 ##### other data ################################
 
-install( FILES
-    tdemediaplayerengine.desktop tdemediaplayer.desktop
-  DESTINATION ${SERVICETYPES_INSTALL_DIR} )
+foreach( _service
+    tdemediaplayerengine.desktop
+    tdemediaplayer.desktop
+)
+  tde_create_translated_desktop(
+    SOURCE ${_service}
+    DESTINATION ${SERVICETYPES_INSTALL_DIR}
+    PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/interfaces-desktops
+  )
+endforeach()
 
 
 ##### tdemediaplayer ##############################
-- 
cgit v1.2.1