cmake, translation: Specify English as target language explicitly
What changed, and why it matters
This is a build-system tweak for Qt translation files. It explicitly tells the translation tool to use English as the target language instead of potentially defaulting to 'en_US'. There is no security issue here—it only affects how translation metadata is generated during compilation.
No security action required. Treat as a normal build-system/localization improvement.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The commit adds -target-language en to the lupdate invocation in share/qt/translate.cmake. Without this flag, Qt’s lupdate may infer the target language as en_US from the system locale. This change makes the generated .ts translation files consistently report English (en) as their target language. It is a deterministic build/localization hygiene fix with no runtime security implications.
Changed components
share/qt/translate.cmakeInspect captured patch +1 / −0
diff --git a/share/qt/translate.cmake b/share/qt/translate.cmake
index 825eaf7b..a8f54a91 100644
--- a/share/qt/translate.cmake
+++ b/share/qt/translate.cmake
@@ -105,6 +105,7 @@ execute_process(
-sort-messages
-I ${PROJECT_SOURCE_DIR}/src
-locations none
+ -target-language en
${ui_files}
${qt_translatable_sources}
${PROJECT_SOURCE_DIR}/src/qt/bitcoinstrings.cpp
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.