|
|
|
@ -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( )
|
|
|
|
|