|
|
@ -131,6 +131,7 @@ endfunction( )
|
|
|
|
##### tde_create_l10n_template(
|
|
|
|
##### tde_create_l10n_template(
|
|
|
|
##### CATALOG file_name
|
|
|
|
##### CATALOG file_name
|
|
|
|
##### [SOURCES source_spec [source_spec]]
|
|
|
|
##### [SOURCES source_spec [source_spec]]
|
|
|
|
|
|
|
|
##### [EXCLUDES regex [regex]]
|
|
|
|
##### [KEYWORDS keyword [keyword]]
|
|
|
|
##### [KEYWORDS keyword [keyword]]
|
|
|
|
##### [ATTRIBUTES attrib_spec [attrib_spec]]
|
|
|
|
##### [ATTRIBUTES attrib_spec [attrib_spec]]
|
|
|
|
##### [DESTINATION directory]
|
|
|
|
##### [DESTINATION directory]
|
|
|
@ -148,6 +149,7 @@ endfunction( )
|
|
|
|
##### - all files with the specified mask will be searched.
|
|
|
|
##### - all files with the specified mask will be searched.
|
|
|
|
##### d) Specify the name of the individual file.
|
|
|
|
##### d) Specify the name of the individual file.
|
|
|
|
##### The methods from b) to d) can be combined.
|
|
|
|
##### The methods from b) to d) can be combined.
|
|
|
|
|
|
|
|
##### EXCLUDES determines which files are to be excluded from processing
|
|
|
|
##### KEYWORDS determines additional keywords for xgettext.
|
|
|
|
##### KEYWORDS determines additional keywords for xgettext.
|
|
|
|
##### ATTRIBUTES determines files and specification for extractattr:
|
|
|
|
##### ATTRIBUTES determines files and specification for extractattr:
|
|
|
|
##### source_spec:element,attribute[,context]
|
|
|
|
##### source_spec:element,attribute[,context]
|
|
|
@ -158,6 +160,7 @@ macro( tde_create_l10n_template )
|
|
|
|
|
|
|
|
|
|
|
|
unset( _catalog )
|
|
|
|
unset( _catalog )
|
|
|
|
unset( _sources )
|
|
|
|
unset( _sources )
|
|
|
|
|
|
|
|
unset( _excludes )
|
|
|
|
unset( _files )
|
|
|
|
unset( _files )
|
|
|
|
unset( _rcs )
|
|
|
|
unset( _rcs )
|
|
|
|
unset( _desktops )
|
|
|
|
unset( _desktops )
|
|
|
@ -184,6 +187,13 @@ macro( tde_create_l10n_template )
|
|
|
|
set( _directive 1 )
|
|
|
|
set( _directive 1 )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# found directive "EXCLUDES"
|
|
|
|
|
|
|
|
if( "+${_arg}" STREQUAL "+EXCLUDES" )
|
|
|
|
|
|
|
|
unset( _excludes )
|
|
|
|
|
|
|
|
set( _var _excludes )
|
|
|
|
|
|
|
|
set( _directive 1 )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
# found directive "DESTINATION"
|
|
|
|
# found directive "DESTINATION"
|
|
|
|
if( "+${_arg}" STREQUAL "+DESTINATION" )
|
|
|
|
if( "+${_arg}" STREQUAL "+DESTINATION" )
|
|
|
|
unset( _dest )
|
|
|
|
unset( _dest )
|
|
|
@ -268,6 +278,16 @@ macro( tde_create_l10n_template )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
endforeach( )
|
|
|
|
endforeach( )
|
|
|
|
|
|
|
|
if( _excludes )
|
|
|
|
|
|
|
|
# filter files by excludes
|
|
|
|
|
|
|
|
foreach( _src ${_files} )
|
|
|
|
|
|
|
|
foreach( _exclude ${_excludes} )
|
|
|
|
|
|
|
|
if( ${_src} MATCHES ${_exclude} )
|
|
|
|
|
|
|
|
list( REMOVE_ITEM _files ${_src} )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
endforeach( )
|
|
|
|
|
|
|
|
endforeach( )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
if( NOT _files AND NOT _attributes )
|
|
|
|
if( NOT _files AND NOT _attributes )
|
|
|
|
tde_message_fatal( "no source files found" )
|
|
|
|
tde_message_fatal( "no source files found" )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|