summaryrefslogtreecommitdiffstats
path: root/kivio
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-01-08 00:06:00 +0100
committerSlávek Banko <[email protected]>2019-01-08 01:20:05 +0100
commit8147f97196ea169d6ce1de58ebdaa85e0569ea23 (patch)
tree81b34c6bdabaeacdffb4a9f052ed17ebc18efb20 /kivio
parent36ea4eb8742d580b59849824d9075929ff26d001 (diff)
downloadkoffice-8147f97196ea169d6ce1de58ebdaa85e0569ea23.tar.gz
koffice-8147f97196ea169d6ce1de58ebdaa85e0569ea23.zip
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 60f97e3b91c86febc249259183c57399a7c6b528)
Diffstat (limited to 'kivio')
-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"
+)