diff options
author | Slávek Banko <[email protected]> | 2020-03-24 16:51:10 +0100 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-03-25 11:18:30 +0100 |
commit | 47c2f936d8823148bdbd45917af43e55a39bfc95 (patch) | |
tree | 315e2406be716a787b490c959157f736a44d38f9 /src/CMakeLists.txt | |
parent | 9fcfb93f800088606ac834fa9218411c4badba99 (diff) | |
download | tdeio-apt-47c2f936d8823148bdbd45917af43e55a39bfc95.tar.gz tdeio-apt-47c2f936d8823148bdbd45917af43e55a39bfc95.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 c5a99d8b5eb021416b571874a1591753df9669cc)
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 95624d8..7d9cf9e 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -37,17 +37,23 @@ tde_add_kpart( tdeio_apt MODULE AUTOMOC ##### other data -install( - FILES apt.protocol apt+http.protocol +foreach( _protocol apt.protocol apt+http.protocol ) + tde_create_translated_desktop( + SOURCE ${_protocol} DESTINATION ${SERVICES_INSTALL_DIR} -) + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files + ) +endforeach( ) + +foreach( _desktop apt-file.desktop apt-files.desktop apt-search.desktop ) + tde_create_translated_desktop( + SOURCE ${_desktop} + DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files + ) +endforeach( ) install( FILES tdeio_apt.css tdedeb_logo.png DESTINATION ${DATA_INSTALL_DIR}/tdeio_apt/ ) - -install( - FILES apt-search.desktop apt-file.desktop apt-files.desktop - DESTINATION ${SERVICES_INSTALL_DIR}/searchproviders -) |