@ -155,6 +155,8 @@ endfunction( )
# # # # #
# # # # #
# # # # # W h e r e :
# # # # # W h e r e :
# # # # # C A T A L O G d e t e r m i n e s t h e t a r g e t f i l e name ( without pot suffix ) .
# # # # # C A T A L O G d e t e r m i n e s t h e t a r g e t f i l e name ( without pot suffix ) .
# # # # # I f t h e n a m e e n d s w i t h ' / ' , a c a t a l o g o f t h e s a m e n a m e
# # # # # w i l l b e c r e a t e d i n t h e s p e c i f i e d d i r e c t o r y .
# # # # # S O U R C E S c a n b e s p e c i f i e d b y s e v e r a l o p t i o n s :
# # # # # S O U R C E S c a n b e s p e c i f i e d b y s e v e r a l o p t i o n s :
# # # # # a ) D o n o t s p e c i f y a n y t h i n g
# # # # # a ) D o n o t s p e c i f y a n y t h i n g
# # # # # - a l l u s u a l s o u r c e f i l e s w i l l b e a u t o m a t i c a l l y s e a r c h e d .
# # # # # - a l l u s u a l s o u r c e f i l e s w i l l b e a u t o m a t i c a l l y s e a r c h e d .
@ -307,6 +309,11 @@ macro( tde_l10n_create_template )
set ( _dest "${CMAKE_CURRENT_SOURCE_DIR}/${_dest}" )
set ( _dest "${CMAKE_CURRENT_SOURCE_DIR}/${_dest}" )
endif ( )
endif ( )
if ( ${ _catalog } MATCHES "/$" )
string ( REGEX REPLACE "/$" "" _catalog "${_catalog}" )
get_filename_component ( _catalog_base "${_catalog}" NAME )
set ( _catalog "${_catalog}/${_catalog_base}" )
endif ( )
get_filename_component ( _potFilename "${_dest}${_catalog}.pot" ABSOLUTE )
get_filename_component ( _potFilename "${_dest}${_catalog}.pot" ABSOLUTE )
file ( RELATIVE_PATH _potFilename ${ CMAKE_SOURCE_DIR } ${ _potFilename } )
file ( RELATIVE_PATH _potFilename ${ CMAKE_SOURCE_DIR } ${ _potFilename } )
message ( STATUS "Create translation template ${_potFilename}" )
message ( STATUS "Create translation template ${_potFilename}" )