From 976023e1c3762587023803e86a8c184da3e67915 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 5 Apr 2020 15:45:12 +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 --- src/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index bf18877..d4cc44d 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -113,14 +113,16 @@ install( DESTINATION ${DATA_INSTALL_DIR}/${PROJECT_NAME} ) -install( - FILES kbibtex_part.desktop +tde_create_translated_desktop( + SOURCE kbibtex_part.desktop DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files ) -install( - FILES ${PROJECT_NAME}.desktop +tde_create_translated_desktop( + SOURCE ${PROJECT_NAME}.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files ) install( -- cgit v1.2.3