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.
30 lines
826 B
30 lines
826 B
6 years ago
|
##### prepare styles XSL files ##################
|
||
|
|
||
|
file( GLOB_RECURSE _styles_xsl
|
||
|
RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
|
||
|
${CMAKE_CURRENT_SOURCE_DIR}/styles/*.xsl
|
||
|
)
|
||
|
foreach( _style_xsl ${_styles_xsl} )
|
||
|
tde_l10n_prepare_xml(
|
||
|
SOURCE ${_style_xsl}
|
||
|
TAGS "kopete-i18n"
|
||
|
CONTEXT "Translators: The %FOO% placeholders are variables that are substituted in the code, please leave them untranslated"
|
||
|
)
|
||
|
list( REMOVE_ITEM _styles_xsl "${_style_xsl}" )
|
||
|
list( APPEND _styles_xsl "${_style_xsl}.tde_l10n" )
|
||
|
endforeach( )
|
||
|
|
||
|
|
||
|
##### create translation templates ##############
|
||
|
|
||
|
tde_l10n_create_template(
|
||
|
CATALOG "kopete"
|
||
|
SOURCES "." ${_styles_xsl}
|
||
|
EXCLUDES
|
||
|
"^libkopete/compat/"
|
||
|
"^protocols/testbed/"
|
||
|
"^styles/.*\\\\.xsl$"
|
||
|
)
|
||
|
|
||
|
tde_l10n_auto_add_subdirectories( )
|