Skip to content

Commit 286e5e4

Browse files
jcfrCarlos Luque
and
Carlos Luque
committed
STYLE: i18n: Simplify *.ts files removing location
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]>
1 parent 99b1120 commit 286e5e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMake/SlicerMacroTranslation.cmake

+2-2
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ function(SlicerFunctionAddGenerateSlicerTranslationQMFilesTarget)
155155
set(untranslated_ts_file ${untranslated_ts_dir}/${ts_basefilename}_untranslated.ts)
156156
SLICER_CREATE_TRANSLATION_ONLY(
157157
${srcs_to_translate} ${rewritten_scripts_to_translate_for_context} ${untranslated_ts_file}
158-
OPTIONS -source-language en_US -no-ui-lines
158+
OPTIONS -source-language en_US -no-ui-lines -locations none
159159
)
160160

161161
set_source_files_properties(${ts_files} PROPERTIES OUTPUT_LOCATION ${qm_output_dir})
@@ -164,7 +164,7 @@ function(SlicerFunctionAddGenerateSlicerTranslationQMFilesTarget)
164164
# generating the associated "*_<lang>.qm" files.
165165
QT5_CREATE_TRANSLATION(
166166
QM_OUTPUT_FILES ${srcs_to_translate} ${rewritten_scripts_to_translate_for_context} ${ts_files}
167-
OPTIONS -source-language en_US -no-ui-lines
167+
OPTIONS -source-language en_US -no-ui-lines -locations none
168168
)
169169
else()
170170
# Add custom command for generating the associated "*_<lang>.qm" files.

0 commit comments

Comments
 (0)