summaryrefslogtreecommitdiffstats
path: root/twin/CMakeL10n.txt
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2020-06-28 00:42:21 +0200
committerSlávek Banko <slavek.banko@axis.cz>2020-06-28 00:42:21 +0200
commit92841ae8b62560f0b137dc838bfd12ac78d26599 (patch)
tree77ff1aee27f10b9ba54d6c6e1f4d972c72d69b67 /twin/CMakeL10n.txt
parent191cf4812dfa7524f32916423d79f072d88f56d1 (diff)
downloadtdebase-92841ae8b62560f0b137dc838bfd12ac78d26599.tar.gz
tdebase-92841ae8b62560f0b137dc838bfd12ac78d26599.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> (cherry picked from commit 2f706891f32258c2b070471905f983e4585296d2)
Diffstat (limited to 'twin/CMakeL10n.txt')
-rw-r--r--twin/CMakeL10n.txt26
1 files changed, 26 insertions, 0 deletions
diff --git a/twin/CMakeL10n.txt b/twin/CMakeL10n.txt
index 4255a573e..11540e442 100644
--- a/twin/CMakeL10n.txt
+++ b/twin/CMakeL10n.txt
@@ -8,3 +8,29 @@ tde_l10n_create_template(
)
tde_l10n_auto_add_subdirectories( )
+
+file(
+ GLOB_RECURSE _twin_kcms
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/kcmtwin/*.desktop
+)
+list( SORT _twin_kcms )
+
+file(
+ GLOB_RECURSE _twin_data
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/data/*.twinrules
+)
+list( SORT _twin_data )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/twin-desktops/"
+ SOURCES_DESKTOP ${_twin_kcms} ${_twin_data}
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/twin-eventsrc/"
+ SOURCES eventsrc
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)