diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-06-07 18:25:52 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-06-07 18:25:52 +0200 |
commit | 4b7a4e17362206fd2eade35ba947a850263b0ea1 (patch) | |
tree | 3f3e619da9fd3c0f76ef95e44c73898a278e059b /tdeio/CMakeLists.txt | |
parent | 31fa399a0aa455f3f52251f977233d57e92de28c (diff) | |
download | tdelibs-4b7a4e17362206fd2eade35ba947a850263b0ea1.tar.gz tdelibs-4b7a4e17362206fd2eade35ba947a850263b0ea1.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 <slavek.banko@axis.cz>
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 ) |