diff options
author | Slávek Banko <[email protected]> | 2020-05-27 03:12:08 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-05-28 17:53:20 +0200 |
commit | 503dc8df8bab9ec5383b08abf6c94938f4aae4ed (patch) | |
tree | b29093bede6ac30d0804a2bd1a53e60d0379963b /kwordquiz/src/CMakeLists.txt | |
parent | d802e99b97d5de62b978b343b0db7db52c212adc (diff) | |
download | tdeedu-503dc8df8bab9ec5383b08abf6c94938f4aae4ed.tar.gz tdeedu-503dc8df8bab9ec5383b08abf6c94938f4aae4ed.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]>
(cherry picked from commit a084db175509b58e57a81d50b1688709f19758bf)
Diffstat (limited to 'kwordquiz/src/CMakeLists.txt')
-rw-r--r-- | kwordquiz/src/CMakeLists.txt | 20 |
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} ) - |