summaryrefslogtreecommitdiffstats
path: root/kig
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2018-12-27 12:51:39 +0100
committerSlávek Banko <slavek.banko@axis.cz>2018-12-27 19:20:18 +0100
commit3aac1fb851abb5452f06a01194806ec41b0dacd8 (patch)
tree09d7b09ec160ff1fc30b121d22a7e468ea1fb0b9 /kig
parent3946c8ef277ca9a214cb9edbcc7cdfc710a5ca3a (diff)
downloadtdeedu-3aac1fb851abb5452f06a01194806ec41b0dacd8.tar.gz
tdeedu-3aac1fb851abb5452f06a01194806ec41b0dacd8.zip
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz> (cherry picked from commit b97668ea3912b7562afd4e4af132a88e8fd5ab16)
Diffstat (limited to 'kig')
-rw-r--r--kig/CMakeL10n.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/kig/CMakeL10n.txt b/kig/CMakeL10n.txt
new file mode 100644
index 00000000..e63464d3
--- /dev/null
+++ b/kig/CMakeL10n.txt
@@ -0,0 +1,39 @@
+##### prepare kig templates #####################
+
+file( GLOB_RECURSE _kigt_files
+ RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
+ ${CMAKE_CURRENT_SOURCE_DIR}/macros/*.kigt
+)
+list( SORT _kigt_files )
+unset( _kigt_l10n )
+foreach( _kigt_file ${_kigt_files} )
+ tde_l10n_prepare_xml(
+ SOURCE ${_kigt_file}
+ TAGS "Name" "Description" "UseText" "SelectStatement"
+ C_FORMAT
+ )
+ list( APPEND _kigt_l10n "${_kigt_file}.tde_l10n" )
+endforeach( )
+
+
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "kig"
+ SOURCES
+ "."
+ "data/tips"
+ ${_kigt_l10n}
+ EXCLUDES
+ "^tdefile/"
+)
+
+tde_l10n_create_template(
+ CATALOG "tdefile_drgeo"
+ SOURCES "tdefile/tdefile_drgeo.cpp" "tdefile/tdefile_drgeo.h"
+)
+
+tde_l10n_create_template(
+ CATALOG "tdefile_kig"
+ SOURCES "tdefile/tdefile_kig.cpp" "tdefile/tdefile_kig.h"
+)