fix(i18n): make user-facing strings translatable - #14848
Conversation
Codecov Report❌ Patch coverage is ❌ Your patch check has failed because the patch coverage (0.00%) is below the target coverage (30.00%). You can increase the patch coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## master #14848 +/- ##
==========================================
+ Coverage 25.47% 33.58% +8.11%
==========================================
Files 769 929 +160
Lines 65912 84105 +18193
Branches 30495 38871 +8376
==========================================
+ Hits 16788 28243 +11455
+ Misses 37285 36818 -467
- Partials 11839 19044 +7205
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 624 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
Build ResultsPlatform Status
All builds passed. Pre-commit
Pre-commit hooks: 2 passed, 75 failed, 7 skipped. Test Resultslinux-coverage-integration: 43 passed, 0 skipped Code CoverageCoverage: 69.0% No baseline available for comparison Artifact Sizes
Updated: 2026-08-12 06:49:38 UTC • Commit: 33e5c05 • Triggered by: Android |
Description
This PR consolidates related translatability fixes across QGroundControl.
It supersedes the previously submitted single-purpose i18n PRs #14824...#14827 and #14834...#14840, which were closed at the maintainer's request so the changes could be grouped into a cohesive PR with lower review overhead.
This is intended to be translation enablement only. It wraps existing user-facing strings in
tr()orqsTr()and replaces dynamic translation keys with stable positional placeholders.The English UI text, application behavior, settings behavior, runtime identifiers, enum values, and data formats are unchanged.
Translation files are intentionally not included. The newly exposed source strings can be handled through the existing Crowdin workflow.
Changes
Lat: %1 Lon: %2source stringType of Change
Functional Impact
No functional behavior is intended to change.
The PR only changes how existing user-facing strings are passed to Qt's translation system. The untranslated English output remains the same, except that runtime values now use stable positional placeholders instead of being embedded in translation keys.
Testing
git diff --checklupdateagainst all 30 modified source files%1/%2coordinate translator comment was extractedalltarget successfullyLocal build
alltarget finished successfullyQGroundControl.exelinked successfullyThe runtime emitted an existing warning about
QQuickPinchArea.enabledoverriding a base-object member. It is unrelated to these translation changes and did not prevent startup or normal shutdown.No regression test was added because the changes only expose existing source strings to Qt's translation system.
Platforms Tested
Flight Stacks Tested
Screenshots
Not applicable. The untranslated English UI output and layout are unchanged.
Checklist