summaryrefslogtreecommitdiffstats
path: root/kpercentage/kpercentage/CMakeL10n.txt
diff options
context:
space:
mode:
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 0000000..d9eee4a
--- /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}
+)