tde_create_translated_desktop: Show the full path of the source

desktop file when merging translations.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/63/head
Slávek Banko 4 years ago
parent ae0ecf194b
commit 28260f0078
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -1903,6 +1903,7 @@ macro( tde_create_translated_desktop )
# get a base name and a directory
get_filename_component( _basename ${_src} ABSOLUTE )
get_filename_component( _basedir ${_basename} PATH )
file( RELATIVE_PATH _sourcename "${CMAKE_SOURCE_DIR}" "${_basename}" )
file( RELATIVE_PATH _basename "${CMAKE_CURRENT_SOURCE_DIR}" "${_basename}" )
# prepare the binary directory according to source directory
@ -1989,6 +1990,7 @@ macro( tde_create_translated_desktop )
OUTPUT ${_basename}
COMMAND ${CMAKE_COMMAND} -E env "LINGUAS=${_linguas}" ${MSGFMT_EXECUTABLE} --desktop --template ${_src} -d ${_po_dir} -o ${_basename} ${_keywords_arg}
DEPENDS ${_src}
COMMENT "Merging translations into ${_sourcename}"
)
else( )
@ -2002,8 +2004,9 @@ macro( tde_create_translated_desktop )
# merge translations command
add_custom_command(
OUTPUT ${_basename}
COMMAND ${INTLTOOL_MERGE_EXECUTABLE} -d ${_po_dir} ${_basename}.in ${_basename}
COMMAND ${INTLTOOL_MERGE_EXECUTABLE} -q -d ${_po_dir} ${_basename}.in ${_basename}
DEPENDS ${_src}
COMMENT "Merging translations into ${_sourcename}"
)
endif( )

Loading…
Cancel
Save