diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-03-24 16:51:10 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-03-25 11:16:24 +0100 |
commit | c5a99d8b5eb021416b571874a1591753df9669cc (patch) | |
tree | aba51d9a34b26afd483fdb6f73aa9f969b330a32 /src | |
parent | 131e5aaa5ef15c015d04b0a0559d659ab682e67b (diff) | |
download | tdeio-apt-c5a99d8b5eb021416b571874a1591753df9669cc.tar.gz tdeio-apt-c5a99d8b5eb021416b571874a1591753df9669cc.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 'src')
-rw-r--r-- | src/CMakeL10n.txt | 5 | ||||
-rw-r--r-- | src/CMakeLists.txt | 22 |
2 files changed, 19 insertions, 8 deletions
diff --git a/src/CMakeL10n.txt b/src/CMakeL10n.txt index 058043e..e7bf2af 100644 --- a/src/CMakeL10n.txt +++ b/src/CMakeL10n.txt @@ -1,3 +1,8 @@ ##### create translation templates ############## tde_l10n_create_template( "messages/tdeio-apt" ) + +tde_l10n_create_template( + CATALOG "desktop_files/tdeio-apt-desktops" + SOURCES *.protocol *.desktop +) 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 -) |