From 3e1ea3399a8b6d5df32a014328c1d4283067d8f7 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Fri, 28 Jun 2019 09:28:59 -0400 Subject: [PATCH] STYLE: i18n: Simplify *.ts files removing location After talking with "Carlos Luque ", we decided to keep the file simpler. This could be revisited later. Co-authored-by: Carlos Luque --- CMake/SlicerMacroTranslation.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/SlicerMacroTranslation.cmake b/CMake/SlicerMacroTranslation.cmake index d02c4b76364..18e49f12f7d 100644 --- a/CMake/SlicerMacroTranslation.cmake +++ b/CMake/SlicerMacroTranslation.cmake @@ -155,7 +155,7 @@ function(SlicerFunctionAddGenerateSlicerTranslationQMFilesTarget) set(untranslated_ts_file ${untranslated_ts_dir}/${ts_basefilename}_untranslated.ts) SLICER_CREATE_TRANSLATION_ONLY( ${srcs_to_translate} ${rewritten_scripts_to_translate_for_context} ${untranslated_ts_file} - OPTIONS -source-language en_US -no-ui-lines + OPTIONS -source-language en_US -no-ui-lines -locations none ) set_source_files_properties(${ts_files} PROPERTIES OUTPUT_LOCATION ${qm_output_dir}) @@ -164,7 +164,7 @@ function(SlicerFunctionAddGenerateSlicerTranslationQMFilesTarget) # generating the associated "*_.qm" files. QT5_CREATE_TRANSLATION( QM_OUTPUT_FILES ${srcs_to_translate} ${rewritten_scripts_to_translate_for_context} ${ts_files} - OPTIONS -source-language en_US -no-ui-lines + OPTIONS -source-language en_US -no-ui-lines -locations none ) else() # Add custom command for generating the associated "*_.qm" files.