From 503dc8df8bab9ec5383b08abf6c94938f4aae4ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= 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 (cherry picked from commit a084db175509b58e57a81d50b1688709f19758bf) --- applnk/CMakeLists.txt | 35 ++++++++++++++++++++--------------- 1 file changed, 20 insertions(+), 15 deletions(-) (limited to 'applnk/CMakeLists.txt') diff --git a/applnk/CMakeLists.txt b/applnk/CMakeLists.txt index 86b65c6a..8b64a5a1 100644 --- a/applnk/CMakeLists.txt +++ b/applnk/CMakeLists.txt @@ -1,31 +1,36 @@ ##### desktop files -install( - FILES languages.desktop +tde_create_translated_desktop( + SOURCE languages.desktop DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Languages - RENAME .directory + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories + OUTPUT_NAME .directory ) -install( - FILES mathematics.desktop +tde_create_translated_desktop( + SOURCE mathematics.desktop DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Mathematics - RENAME .directory + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories + OUTPUT_NAME .directory ) -install( - FILES science.desktop +tde_create_translated_desktop( + SOURCE science.desktop DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Science - RENAME .directory + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories + OUTPUT_NAME .directory ) -install( - FILES tools.desktop +tde_create_translated_desktop( + SOURCE tools.desktop DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Tools - RENAME .directory + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories + OUTPUT_NAME .directory ) -install( - FILES miscellaneous.desktop +tde_create_translated_desktop( + SOURCE miscellaneous.desktop DESTINATION ${APPS_INSTALL_DIR}/Edutainment/Miscellaneous - RENAME .directory + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/applnk-directories + OUTPUT_NAME .directory ) -- cgit v1.2.1