diff options
author | Slávek Banko <[email protected]> | 2020-06-10 21:25:06 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-06-12 14:19:33 +0200 |
commit | a25cdc59c6302046b3121276f5a33f6b1b55a538 (patch) | |
tree | 5c41c38d0c81e99bfe2d3a8564af42cc2d92941f /kolf/CMakeLists.txt | |
parent | dc556f3e9a46e749b36cf773f9211db4ce58d96b (diff) | |
download | tdegames-a25cdc59c6302046b3121276f5a33f6b1b55a538.tar.gz tdegames-a25cdc59c6302046b3121276f5a33f6b1b55a538.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 'kolf/CMakeLists.txt')
-rw-r--r-- | kolf/CMakeLists.txt | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/kolf/CMakeLists.txt b/kolf/CMakeLists.txt index bd358814..ce80c874 100644 --- a/kolf/CMakeLists.txt +++ b/kolf/CMakeLists.txt @@ -68,18 +68,31 @@ add_custom_command ( OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc" add_custom_target( kolf-magic-mgc ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc" ) -install( FILES x-kourse.desktop x-kolf.desktop - DESTINATION ${MIME_INSTALL_DIR}/application -) +foreach( _mimetype x-kourse.desktop x-kolf.desktop ) + tde_create_translated_desktop( + SOURCE ${_mimetype} + DESTINATION ${MIME_INSTALL_DIR}/application + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-desktops + ) +endforeach() install( FILES kolf.magic "${CMAKE_CURRENT_BINARY_DIR}/kolf.magic.mgc" DESTINATION ${CONFIG_INSTALL_DIR}/magic ) -install( FILES kolf.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} +tde_create_translated_desktop( + SOURCE kolf.desktop + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-desktops ) -install( FILES kolfui.rc intro tutorial.kolf tutorial.kolfgame +foreach( _course intro tutorial.kolf ) + tde_create_translated_desktop( + SOURCE ${_course} + DESTINATION ${DATA_INSTALL_DIR}/kolf + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kolf-courses + ) +endforeach() + +install( FILES kolfui.rc tutorial.kolfgame DESTINATION ${DATA_INSTALL_DIR}/kolf ) |