diff options
author | Slávek Banko <[email protected]> | 2020-05-22 02:49:40 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-05-22 02:49:40 +0200 |
commit | 296306a273438f476ab2266d1c03616de1fd5ef7 (patch) | |
tree | 7788ff1608858031d0b9816452591f2c62f42bc0 /kgpg/CMakeLists.txt | |
parent | 5422ccd94be4a116b9334fb3b350c3a07ff7505e (diff) | |
download | tdeutils-296306a273438f476ab2266d1c03616de1fd5ef7.tar.gz tdeutils-296306a273438f476ab2266d1c03616de1fd5ef7.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 'kgpg/CMakeLists.txt')
-rw-r--r-- | kgpg/CMakeLists.txt | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/kgpg/CMakeLists.txt b/kgpg/CMakeLists.txt index 3121421..ef72aab 100644 --- a/kgpg/CMakeLists.txt +++ b/kgpg/CMakeLists.txt @@ -57,11 +57,13 @@ install( FILES kgpg_anim.gif kgpg_docked.png DESTINATION ${DATA_INSTALL_DIR}/kgpg/pics ) -install( FILES kgpg.desktop - DESTINATION ${XDG_APPS_INSTALL_DIR} +tde_create_translated_desktop( + SOURCE kgpg.desktop + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kgpg-desktops ) -install( FILES kgpg.desktop +install( + FILES ${CMAKE_CURRENT_BINARY_DIR}/kgpg.desktop DESTINATION ${AUTOSTART_INSTALL_DIR} ) @@ -69,13 +71,14 @@ install( FILES kgpg.rc listkeys.rc tips DESTINATION ${DATA_INSTALL_DIR}/kgpg ) -install( FILES encryptfile.desktop - encryptfolder.desktop - DESTINATION - ${DATA_INSTALL_DIR}/konqueror/servicemenus -) +foreach( _desktop encryptfile.desktop encryptfolder.desktop ) + tde_create_translated_desktop( + SOURCE ${_desktop} + DESTINATION ${DATA_INSTALL_DIR}/konqueror/servicemenus + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kgpg-desktops + ) +endforeach() install( FILES kgpg.kcfg DESTINATION ${KCFG_INSTALL_DIR} ) - |