summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2021-06-23 08:09:26 +0200
committerOswald Buddenhagen <oswald.buddenhagen@gmx.de>2021-06-23 08:31:37 +0000
commitc6a9bd8458064b79d1b855c8c639f49dbb43541f (patch)
tree1df28c97ef7ded39c9bc103996a29f786530ca70
parent750bb1f948d97124b6b7e8ee0ee729ff08fb72b3 (diff)
downloadqttranslations-c6a9bd8458064b79d1b855c8c639f49dbb43541f.tar.gz
Add locations to .ts files
Let the ts-* targets generate .ts files with (relative) location information, like we did in Qt 5. Fixes: QTBUG-94718 Change-Id: I7b9c91805d04c0523798d07dbf830cb9be226410 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
-rw-r--r--translations/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/translations/CMakeLists.txt b/translations/CMakeLists.txt
index 051b138..96c5e92 100644
--- a/translations/CMakeLists.txt
+++ b/translations/CMakeLists.txt
@@ -8,7 +8,7 @@ set(en_ts_file_dir "${CMAKE_CURRENT_BINARY_DIR}/en_ts")
function(add_ts_target target input_file output_file)
add_custom_target(${target}
BYPRODUCTS ${output_file}
- COMMAND ${QT_CMAKE_EXPORT_NAMESPACE}::lupdate -no-ui-lines -no-sort "@${input_file}" -ts ${output_file}
+ COMMAND ${QT_CMAKE_EXPORT_NAMESPACE}::lupdate -locations relative -no-ui-lines -no-sort "@${input_file}" -ts ${output_file}
)
endfunction()