summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/TDEMacros.cmake5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 80cd4c5..389c5e3 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -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( )