|
|
@ -1735,7 +1735,7 @@ macro( tde_create_translated_desktop )
|
|
|
|
# create template for intltool-merge
|
|
|
|
# create template for intltool-merge
|
|
|
|
file( READ ${_src} _src_data )
|
|
|
|
file( READ ${_src} _src_data )
|
|
|
|
string( REPLACE ";" "|" _keywords_match "(${_keywords_desktop})" )
|
|
|
|
string( REPLACE ";" "|" _keywords_match "(${_keywords_desktop})" )
|
|
|
|
string( REGEX REPLACE "(^|\n)${_keywords_match}=" "\\1_\\2=" _src_data "${_src_data}" )
|
|
|
|
string( REGEX REPLACE "(^|\n)${_keywords_match}[ ]*=[ ]*" "\\1_\\2=" _src_data "${_src_data}" )
|
|
|
|
file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/${_out_name}.in "${_src_data}" )
|
|
|
|
file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/${_out_name}.in "${_src_data}" )
|
|
|
|
|
|
|
|
|
|
|
|
# merge translations command
|
|
|
|
# merge translations command
|
|
|
@ -1749,19 +1749,18 @@ macro( tde_create_translated_desktop )
|
|
|
|
|
|
|
|
|
|
|
|
# merge translations target
|
|
|
|
# merge translations target
|
|
|
|
add_custom_target( "${_target}" ALL DEPENDS ${_out_name} )
|
|
|
|
add_custom_target( "${_target}" ALL DEPENDS ${_out_name} )
|
|
|
|
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${_out_name} DESTINATION ${_dest} )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
else( )
|
|
|
|
else( )
|
|
|
|
|
|
|
|
|
|
|
|
# just install the original file without translations
|
|
|
|
# just write the original file without translations
|
|
|
|
install(
|
|
|
|
file( READ ${_src} _src_data )
|
|
|
|
FILES ${CMAKE_CURRENT_SOURCE_DIR}/${_src}
|
|
|
|
file( WRITE ${CMAKE_CURRENT_BINARY_DIR}/${_out_name} "${_src_data}" )
|
|
|
|
RENAME ${_out_name}
|
|
|
|
|
|
|
|
DESTINATION ${_dest}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# install traslated desktop file
|
|
|
|
|
|
|
|
install( FILES ${CMAKE_CURRENT_BINARY_DIR}/${_out_name} DESTINATION ${_dest} )
|
|
|
|
|
|
|
|
|
|
|
|
endmacro( )
|
|
|
|
endmacro( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|