You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
587 B
25 lines
587 B
6 years ago
|
##### prepare predefined regexps ################
|
||
|
|
||
|
file( GLOB_RECURSE _regexp_files
|
||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/*.regexp
|
||
|
)
|
||
|
list( SORT _regexp_files )
|
||
|
unset( _regexp_l10n )
|
||
|
foreach( _regexp_file ${_regexp_files} )
|
||
|
tde_l10n_prepare_xml(
|
||
|
SOURCE ${_regexp_file}
|
||
|
TAGS "Title" "Description"
|
||
|
C_FORMAT
|
||
|
)
|
||
|
list( APPEND _regexp_l10n "${_regexp_file}.tde_l10n" )
|
||
|
endforeach( )
|
||
|
|
||
|
|
||
|
##### create translation templates ##############
|
||
|
|
||
|
tde_l10n_create_template(
|
||
|
CATALOG "kregexpeditor"
|
||
|
SOURCES "." ${_regexp_l10n}
|
||
|
)
|