diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-07-12 16:15:10 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-07-12 16:15:10 +0200 |
commit | 0d3043b6308af148da06ac14c53defc4b1e7e138 (patch) | |
tree | 2e9364cb143e70ee062e443275b852b8e2061888 /kontact/CMakeL10n.txt | |
parent | 7c7363c3ca7fb9633d93cefde3cd54b144eee633 (diff) | |
download | tdepim-0d3043b6308af148da06ac14c53defc4b1e7e138.tar.gz tdepim-0d3043b6308af148da06ac14c53defc4b1e7e138.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 'kontact/CMakeL10n.txt')
-rw-r--r-- | kontact/CMakeL10n.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/kontact/CMakeL10n.txt b/kontact/CMakeL10n.txt index bbfad480f..1df9203a9 100644 --- a/kontact/CMakeL10n.txt +++ b/kontact/CMakeL10n.txt @@ -3,3 +3,23 @@ tde_l10n_create_template( "kontact" ) tde_l10n_auto_add_subdirectories( ) + +file( + GLOB_RECURSE _desktops + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/*.desktop +) +list( SORT _desktops ) + +file( + GLOB_RECURSE _profiles + RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/*profile.cfg +) +list( SORT _profiles ) + +tde_l10n_create_template( + CATALOG "desktop_files/kontact-desktops/" + SOURCES_DESKTOP ${_desktops} ${_profiles} src/kontact.setdlg + DESTINATION "${CMAKE_SOURCE_DIR}/translations" +) |