summaryrefslogtreecommitdiffstats
path: root/noatun-plugins/CMakeL10n.txt
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2020-07-15 20:12:47 +0200
committerSlávek Banko <[email protected]>2020-07-15 20:12:47 +0200
commitcb8cda7bca532df21c02bc4d2bfd03387df7f852 (patch)
tree7f6b988c304024c9a45bccc2070790b65b95553e /noatun-plugins/CMakeL10n.txt
parent41f27d91571102626d9aae843adbe070fcb5aef3 (diff)
downloadtdeaddons-cb8cda7bca532df21c02bc4d2bfd03387df7f852.tar.gz
tdeaddons-cb8cda7bca532df21c02bc4d2bfd03387df7f852.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]>
Diffstat (limited to 'noatun-plugins/CMakeL10n.txt')
-rw-r--r--noatun-plugins/CMakeL10n.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/noatun-plugins/CMakeL10n.txt b/noatun-plugins/CMakeL10n.txt
index b585ce4..52bc71b 100644
--- a/noatun-plugins/CMakeL10n.txt
+++ b/noatun-plugins/CMakeL10n.txt
@@ -1,3 +1,16 @@
##### create translation templates ##############
tde_l10n_auto_add_subdirectories( )
+
+file(
+ GLOB_RECURSE _plugins
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/*.plugin
+)
+list( SORT _plugins )
+
+tde_l10n_create_template(
+ CATALOG "desktop_files/noatun-plugins-desktops/"
+ SOURCES_DESKTOP ${_plugins}
+ DESTINATION "${CMAKE_SOURCE_DIR}/translations"
+)