cmake, translation: Skip source locations in TS files

Source locations do not contribute to the string's Context on Transifex
(used for hash calculation) and only trigger unnecessary diffs in
version control.

While the `filename` attribute of the `<location>` element is rendered
as "Occurrences" on Transifex, Qt's lupdate tool does not seem to set
this attribute consistently.
This commit is contained in:
Hennadii Stepanov
2026-03-16 12:57:35 +00:00
parent 4f553bd0da
commit 312ab8ab0a
2 changed files with 1 additions and 1366 deletions

View File

@@ -103,7 +103,7 @@ execute_process(
COMMAND ${LUPDATE_EXECUTABLE}
-no-obsolete
-I ${PROJECT_SOURCE_DIR}/src
-locations relative
-locations none
${ui_files}
${qt_translatable_sources}
${PROJECT_SOURCE_DIR}/src/qt/bitcoinstrings.cpp

File diff suppressed because it is too large Load Diff