summaryrefslogtreecommitdiffstats
path: root/kwordquiz/src/CMakeLists.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-05-27 03:12:08 +0200
committerSlávek Banko <[email protected]>2020-05-28 17:51:29 +0200
commita084db175509b58e57a81d50b1688709f19758bf (patch)
tree0fdf4c3292e92897faf783775d038f7bf8ca21d2 /kwordquiz/src/CMakeLists.txt
parent5255f3b93733410203e467b9442dca1948ffa361 (diff)
downloadtdeedu-a084db175509b58e57a81d50b1688709f19758bf.tar.gz
tdeedu-a084db175509b58e57a81d50b1688709f19758bf.zip
Desktop file translations:
+ Creation of POT template for desktop files added to CMakeL10n rules. + Added creation of translated desktop files during build. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'kwordquiz/src/CMakeLists.txt')
-rw-r--r--kwordquiz/src/CMakeLists.txt20
1 files changed, 13 insertions, 7 deletions
diff --git a/kwordquiz/src/CMakeLists.txt b/kwordquiz/src/CMakeLists.txt
index 4e0b5cad..881a9e7a 100644
--- a/kwordquiz/src/CMakeLists.txt
+++ b/kwordquiz/src/CMakeLists.txt
@@ -73,18 +73,25 @@ tde_add_executable( kwordquiz AUTOMOC
##### other data
install(
- FILES kwordquizui.rc eventsrc
+ FILES kwordquizui.rc
DESTINATION ${DATA_INSTALL_DIR}/kwordquiz
)
-install(
- FILES kwordquiz.desktop
- DESTINATION ${XDG_APPS_INSTALL_DIR}
+tde_create_translated_desktop(
+ SOURCE eventsrc
+ DESTINATION ${DATA_INSTALL_DIR}/kwordquiz
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kwordquiz-events
)
-install(
- FILES x-kwordquiz.desktop
+tde_create_translated_desktop(
+ SOURCE kwordquiz.desktop
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kwordquiz-desktops
+)
+
+tde_create_translated_desktop(
+ SOURCE x-kwordquiz.desktop
DESTINATION ${MIME_INSTALL_DIR}/application
+ PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kwordquiz-desktops
)
install(
@@ -96,4 +103,3 @@ install(
FILES kwordquizrc
DESTINATION ${CONFIG_INSTALL_DIR}
)
-