Skip to content

Commit

Permalink
STYLE: i18n: Simplify *.ts files removing location
Browse files Browse the repository at this point in the history
After talking with "Carlos Luque <[email protected]>", we decided to
keep the file simpler. This could be revisited later.

Co-authored-by: Carlos Luque <[email protected]>
  • Loading branch information
jcfr and Carlos Luque committed Mar 5, 2020
1 parent c239220 commit 3e1ea33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMake/SlicerMacroTranslation.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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})
Expand All @@ -164,7 +164,7 @@ function(SlicerFunctionAddGenerateSlicerTranslationQMFilesTarget)
# generating the associated "*_<lang>.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 "*_<lang>.qm" files.
Expand Down

0 comments on commit 3e1ea33

Please sign in to comment.