diff options
author | Slávek Banko <[email protected]> | 2020-06-07 18:25:52 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-06-07 18:48:13 +0200 |
commit | 9756408b0ebb206b53abd2597926d8fead731977 (patch) | |
tree | 62caa2c2ebd6ebccc5472fdc7469fe54dad8b24f /tdeio/CMakeLists.txt | |
parent | c95c7a29338aa309fab071b5a4475400fdce97a8 (diff) | |
download | tdelibs-9756408b0ebb206b53abd2597926d8fead731977.tar.gz tdelibs-9756408b0ebb206b53abd2597926d8fead731977.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 4b7a4e17362206fd2eade35ba947a850263b0ea1)
Diffstat (limited to 'tdeio/CMakeLists.txt')
-rw-r--r-- | tdeio/CMakeLists.txt | 32 |
1 files changed, 27 insertions, 5 deletions
diff --git a/tdeio/CMakeLists.txt b/tdeio/CMakeLists.txt index c59b8a39d..d14839cca 100644 --- a/tdeio/CMakeLists.txt +++ b/tdeio/CMakeLists.txt @@ -44,17 +44,39 @@ add_custom_target( install( FILES tdeio.magic ${CMAKE_CURRENT_BINARY_DIR}/tdeio.magic.mgc DESTINATION ${CONFIG_INSTALL_DIR}/magic ) -install( FILES +foreach( _service application.desktop kurifilterplugin.desktop kcomprfilter.desktop kscan.desktop kdatatool.desktop tdefileplugin.desktop tdecmodule.desktop - DESTINATION ${SERVICETYPES_INSTALL_DIR} ) +) + tde_create_translated_desktop( + SOURCE ${_service} + DESTINATION ${SERVICETYPES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeio-desktops + ) +endforeach() install( FILES tdeioslave.upd DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) + install( PROGRAMS useragent.pl proxytype.pl DESTINATION ${KCONF_UPDATE_INSTALL_DIR} ) -install( FILES renamedlgplugin.desktop DESTINATION ${SERVICETYPES_INSTALL_DIR} ) -install( FILES kpasswdserver.desktop DESTINATION ${SERVICES_INSTALL_DIR}/kded ) -install( FILES data.protocol DESTINATION ${SERVICES_INSTALL_DIR} ) + +tde_create_translated_desktop( + SOURCE renamedlgplugin.desktop + DESTINATION ${SERVICETYPES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeio-desktops +) + +tde_create_translated_desktop( + SOURCE kpasswdserver.desktop + DESTINATION ${SERVICES_INSTALL_DIR}/kded + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeio-desktops +) + +tde_create_translated_desktop( + SOURCE data.protocol + DESTINATION ${SERVICES_INSTALL_DIR} + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/tdeio-desktops +) if( HAVE_ELFICON ) |