blob: d9eee4a4df62e56bfc2e87236c96cb5d52c15ac5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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}
)
|