summaryrefslogtreecommitdiffstats
path: root/l10n/CMakeL10n.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-06-28 00:42:21 +0200
committerSlávek Banko <[email protected]>2020-06-28 00:42:21 +0200
commit92841ae8b62560f0b137dc838bfd12ac78d26599 (patch)
tree77ff1aee27f10b9ba54d6c6e1f4d972c72d69b67 /l10n/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 <[email protected]> (cherry picked from commit 2f706891f32258c2b070471905f983e4585296d2)
Diffstat (limited to 'l10n/CMakeL10n.txt')
-rw-r--r--l10n/CMakeL10n.txt22
1 files changed, 22 insertions, 0 deletions
diff --git a/l10n/CMakeL10n.txt b/l10n/CMakeL10n.txt
new file mode 100644
index 000000000..e6f3c5623
--- /dev/null
+++ b/l10n/CMakeL10n.txt
@@ -0,0 +1,22 @@
+##### create translation templates ##############
+
+file(
+ GLOB _regions
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/*.desktop
+)
+list( SORT _regions )
+
+file(
+ GLOB_RECURSE _locales
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/*.desktop
+)
+list( REMOVE_ITEM _locales ${_regions} )
+list( SORT _locales )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/l10n-desktops/"
+ SOURCES ${_regions} ${_locales}
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)