summaryrefslogtreecommitdiffstats
path: root/kivio/CMakeL10n.txt
diff options
context:
space:
mode:
Diffstat (limited to 'kivio/CMakeL10n.txt')
-rw-r--r--kivio/CMakeL10n.txt29
1 files changed, 29 insertions, 0 deletions
diff --git a/kivio/CMakeL10n.txt b/kivio/CMakeL10n.txt
new file mode 100644
index 00000000..4ccb2a6b
--- /dev/null
+++ b/kivio/CMakeL10n.txt
@@ -0,0 +1,29 @@
+##### prepare strings from data files ###########
+
+unset( _kivio_data_l10n )
+file( GLOB_RECURSE _kivio_data_files
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/*.shape
+)
+list( SORT _kivio_data_files )
+foreach( _kivio_file ${_kivio_data_files} )
+ tde_l10n_prepare_xml(
+ SOURCE "${_kivio_file}"
+ CONTEXT "Stencils"
+ TAGS "name"
+ )
+ list( APPEND _kivio_data_l10n "${_kivio_file}.tde_l10n" )
+endforeach( )
+
+
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "kivio"
+ SOURCES
+ "."
+ ${_kivio_data_l10n}
+ ATTRIBUTES
+ "desc:Title,data,Stencils:Description,data,Stencils"
+ "*.sml:Title,data,Stencils:Description,data,Stencils"
+)