From a25cdc59c6302046b3121276f5a33f6b1b55a538 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Wed, 10 Jun 2020 21:25:06 +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 --- libtdegames/carddecks/CMakeLists.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'libtdegames/carddecks/CMakeLists.txt') diff --git a/libtdegames/carddecks/CMakeLists.txt b/libtdegames/carddecks/CMakeLists.txt index 102d0391..6b1bb7fb 100644 --- a/libtdegames/carddecks/CMakeLists.txt +++ b/libtdegames/carddecks/CMakeLists.txt @@ -14,4 +14,17 @@ install( DIRECTORY cards-aisleriot cards-dondorf-whist-b cards-spaced cards-xskat-french cards-default decks cards-konqi-modern cards-warwick cards-xskat-german DESTINATION ${DATA_INSTALL_DIR}/carddecks + PATTERN *.desktop EXCLUDE ) + +file( GLOB_RECURSE _desktops + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/*.desktop ) +foreach( _desktop IN LISTS _desktops ) + get_filename_component( _theme ${_desktop} PATH ) + tde_create_translated_desktop( + SOURCE ${_desktop} + DESTINATION ${DATA_INSTALL_DIR}/carddecks/${_theme} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/libtdegames-carddecks + ) +endforeach() -- cgit v1.2.1