diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2020-12-06 14:39:23 +0100 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2020-12-07 03:31:40 +0100 |
commit | 38b2578bd711911ac10741859506ec442484f0cf (patch) | |
tree | 462f467941c1091b55048a093d270b69b45beb25 | |
parent | 42710c128d1538489a4009c51ebee2ab72f2a0a8 (diff) | |
download | tde-cmake-38b2578bd711911ac10741859506ec442484f0cf.tar.gz tde-cmake-38b2578bd711911ac10741859506ec442484f0cf.zip |
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>
(cherry picked from commit 28260f0078b016aac7f9b924c424bc1ae7d157fd)
-rw-r--r-- | modules/TDEMacros.cmake | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake index 8f1110c..79d4f25 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( ) |