|
|
@ -1933,6 +1933,13 @@ macro( tde_create_translated_desktop )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# if the translated desktop file is not installed, generate to the specified output name
|
|
|
|
|
|
|
|
if( "${_dest}" STREQUAL "-" )
|
|
|
|
|
|
|
|
set( _basename "${_out_name}" )
|
|
|
|
|
|
|
|
get_filename_component( _out_dir "${CMAKE_CURRENT_BINARY_DIR}/${_out_name}" PATH )
|
|
|
|
|
|
|
|
file( MAKE_DIRECTORY "${_out_dir}" )
|
|
|
|
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
# are there any translations available?
|
|
|
|
# are there any translations available?
|
|
|
|
unset( _translations )
|
|
|
|
unset( _translations )
|
|
|
|
if( EXISTS "${_po_dir}" AND IS_DIRECTORY "${_po_dir}" )
|
|
|
|
if( EXISTS "${_po_dir}" AND IS_DIRECTORY "${_po_dir}" )
|
|
|
@ -2002,11 +2009,13 @@ macro( tde_create_translated_desktop )
|
|
|
|
endif( )
|
|
|
|
endif( )
|
|
|
|
|
|
|
|
|
|
|
|
# install traslated desktop file
|
|
|
|
# install traslated desktop file
|
|
|
|
install(
|
|
|
|
if( NOT "${_dest}" STREQUAL "-" )
|
|
|
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${_basename}
|
|
|
|
install(
|
|
|
|
RENAME ${_out_name}
|
|
|
|
FILES ${CMAKE_CURRENT_BINARY_DIR}/${_basename}
|
|
|
|
DESTINATION ${_dest}
|
|
|
|
RENAME ${_out_name}
|
|
|
|
)
|
|
|
|
DESTINATION ${_dest}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
|
|
endforeach()
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
|
|
|
|