@ -432,11 +432,13 @@ macro( tde_l10n_create_template )
# u p d a t e r e f e r e n c e s f o r r e s o u r c e s t o o r i g i n a l f i l e s a n d l i n e n u m b e r s
# u p d a t e r e f e r e n c e s f o r r e s o u r c e s t o o r i g i n a l f i l e s a n d l i n e n u m b e r s
if ( _rcs OR _attributes )
if ( _rcs OR _attributes )
file ( STRINGS "${CMAKE_CURRENT_SOURCE_DIR}/extracted-rc.tde_l10n" _extractedRC )
file ( READ "${CMAKE_CURRENT_SOURCE_DIR}/extracted-rc.tde_l10n" _extractedRC )
list ( LENGTH _extractedRC _extractedRC_len )
string ( REGEX REPLACE "[^\n]" "" _extractedRC_len "${_extractedRC}" )
string ( LENGTH "+${_extractedRC_len}" _extractedRC_len )
set ( _rcPos 0 )
set ( _rcPos 0 )
while ( _rcPos LESS ${ _extractedRC_len } )
while ( _rcPos LESS ${ _extractedRC_len } )
list ( GET _extractedRC ${ _rcPos } _rcLine )
string ( REGEX REPLACE "^([^\n]*)\n(.*)" "\\1" _rcLine "${_extractedRC}" )
string ( REGEX REPLACE "^([^\n]*)\n(.*)" "\\2" _extractedRC "${_extractedRC}" )
math ( EXPR _rcPos "${_rcPos}+1" )
math ( EXPR _rcPos "${_rcPos}+1" )
if ( "${_rcLine}" MATCHES "^//i18n: file .* line [0-9]*$" )
if ( "${_rcLine}" MATCHES "^//i18n: file .* line [0-9]*$" )
string ( REGEX REPLACE "^//i18n: file (.*) line ([0-9]*)$" "\\1:\\2" _rcOrig ${ _rcLine } )
string ( REGEX REPLACE "^//i18n: file (.*) line ([0-9]*)$" "\\1:\\2" _rcOrig ${ _rcLine } )