@ -646,6 +646,19 @@ macro( tde_l10n_create_template )
# u p d a t e r e f e r e n c e s f o r m o d i f i e d s o u r c e files ( ".tde_l10n" extension )
string ( REGEX REPLACE "\\.tde_l10n[0-9]*(:[0-9]+)" "\\1" _pot "${_pot}" )
# r e p l a c e t h e r e f e r e n c e s f o r _ t r a n s l a t o r i n f o w i t h i n s t r u c t i o n s i n t h e c o m m e n t
string ( REGEX REPLACE
" ( ^ | \ n ) ( # : [ ^ \ n ] * ) _ t r a n s l a t o r i n f o : 1 ( $ |[ \n])"
" \ \ 1 # . I n s t e a d o f a l i t e r a l t r a n s l a t i o n , a d d y o u r n a m e t o t h e e n d o f t h e list ( separated by a comma ) . \ n \ \ 2 \ \ 3 \ n # , i g n o r e - i n c o n s i s t e n t "
_ p o t " $ { _ p o t } "
)
string ( REGEX REPLACE
" ( ^ | \ n ) ( # : [ ^ \ n ] * ) _ t r a n s l a t o r i n f o : 2 ( $ |[ \n])"
" \ \ 1 # . I n s t e a d o f a l i t e r a l t r a n s l a t i o n , a d d y o u r e m a i l t o t h e e n d o f t h e list ( separated by a comma ) . \ n \ \ 2 \ \ 3 \ n # , i g n o r e - i n c o n s i s t e n t "
_ p o t " $ { _ p o t } "
)
string ( REGEX REPLACE "(^|\n)#:($|\n)" "\\1" _pot "${_pot}" )
# s a v e t r a n s l a t i o n t e m p l a t e
if ( EXISTS "${_dest}${_catalog}.pot" )
file ( READ "${_dest}${_catalog}.pot" _potOrig )