@ -1834,13 +1834,20 @@ macro( tde_create_translated_desktop )
if ( NOT _src )
if ( NOT _src )
tde_message_fatal ( "no source desktop file specified" )
tde_message_fatal ( "no source desktop file specified" )
endif ( )
endif ( )
get_filename_component ( _basename ${ _src } NAME )
get_filename_component ( _basename ${ _src } ABSOLUTE )
get_filename_component ( _basedir ${ _basename } PATH )
file ( RELATIVE_PATH _basename "${CMAKE_CURRENT_SOURCE_DIR}" "${_basename}" )
# i f n o o u t p u t n a m e s p e c i f i e d , u s e t h e s a m e a s s o u r c e
# i f n o o u t p u t n a m e s p e c i f i e d , u s e t h e s a m e a s s o u r c e
if ( NOT _out_name )
if ( NOT _out_name )
get_filename_component ( _out_name ${ _src } NAME )
get_filename_component ( _out_name ${ _src } NAME )
endif ( )
endif ( )
# p r e p a r e t h e b i n a r y d i r e c t o r y a c c o r d i n g t o s o u r c e d i r e c t o r y
file ( RELATIVE_PATH _binary_basedir "${CMAKE_CURRENT_SOURCE_DIR}" "${_basedir}" )
set ( _binary_basedir "${CMAKE_CURRENT_BINARY_DIR}/${_binary_basedir}" )
file ( MAKE_DIRECTORY "${_binary_basedir}" )
# i f n o p o d i r e c t o r y s p e c i f i e d , t r y t o d e t e r m i n e i t
# i f n o p o d i r e c t o r y s p e c i f i e d , t r y t o d e t e r m i n e i t
if ( NOT _po_dir )
if ( NOT _po_dir )
if ( EXISTS ${ CMAKE_SOURCE_DIR } /translations/desktop_files/ ${ _basename } AND
if ( EXISTS ${ CMAKE_SOURCE_DIR } /translations/desktop_files/ ${ _basename } AND