summaryrefslogtreecommitdiffstats
path: root/kpercentage/kpercentage/CMakeL10n.txt
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 12:51:42 +0100
commitb97668ea3912b7562afd4e4af132a88e8fd5ab16 (patch)
tree296f75b4a83076a2f08af9f4eba96d892157d8c2 /kpercentage/kpercentage/CMakeL10n.txt
parentaa3e23bf8dc33adec6ea9b06cd00c9c01826d1b8 (diff)
downloadtdeedu-b97668ea3912b7562afd4e4af132a88e8fd5ab16.tar.gz
tdeedu-b97668ea3912b7562afd4e4af132a88e8fd5ab16.zip
Add CMakeL10n rules.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'kpercentage/kpercentage/CMakeL10n.txt')
-rw-r--r--kpercentage/kpercentage/CMakeL10n.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/kpercentage/kpercentage/CMakeL10n.txt b/kpercentage/kpercentage/CMakeL10n.txt
new file mode 100644
index 00000000..d9eee4a4
--- /dev/null
+++ b/kpercentage/kpercentage/CMakeL10n.txt
@@ -0,0 +1,17 @@
+##### prepare right and wrong files #############
+
+unset( _answers_l10n )
+foreach( _answers right.txt wrong.txt )
+ file( READ "${CMAKE_CURRENT_SOURCE_DIR}/${_answers}" _file_data )
+ string( REGEX REPLACE "(^|\n)([^\n]+)" "\\1i18n(\"\\2\");" _file_l10n "${_file_data}" )
+ file( WRITE "${CMAKE_CURRENT_SOURCE_DIR}/${_answers}.tde_l10n" "${_file_l10n}" )
+ list( APPEND _answers_l10n "${_answers}.tde_l10n" )
+endforeach( )
+
+
+##### create translation templates ##############
+
+tde_l10n_create_template(
+ CATALOG "kpercentage"
+ SOURCES "." ${_answers_l10n}
+)