Add build-time localization for the HUD and launcher #3617

Closed
H-Bole wants to merge 2 commits from upstream-pr/3617 into main
H-Bole commented 2026-11-30 01:50:10 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by H-Bole on 2026-11-30T01:50:10Z.


What it changes

  • Shares English and Simplified Chinese JSON catalogs across the HUD, CLI and Windows launcher. F1 switches immediately and remembers the selection. The CLI accepts --language, and the launcher accepts -Language.
  • Compiles Rust messages into static tables at build time. Plain lookups borrow text, formatting can write into an existing buffer, and the FPS line is formatted only when the displayed reading or language changes.
  • Keeps the upstream HUD layout and the English diagnostics and progress lines used by scripts. The shader translator’s inputs are unchanged.

How it was tested

  • At 424caf36, the Windows build, all-features check, seven focused Rust tests and repository asset policy passed.
  • Checked bilingual CLI help and errors, language precedence, and PowerShell 5.1 progress parsing. Windows GDI found no missing glyphs in 358 Chinese HUD strings, and the shortened FPS line fit at the tested scales.
  • No game was launched. Full workspace tests were not run.

Checked for overlap

  • Checked related F1 localization work in #2244, #2352, #1997, #1977 and #2755. This update also covers the CLI and launcher through shared, compiled catalogs. Precompile controls remain separate in #3622.
<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5557545080 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3617). Originally posted by [H-Bole](https://github.com/H-Bole) on 2026-11-30T01:50:10Z. --- ## What it changes - Shares English and Simplified Chinese JSON catalogs across the HUD, CLI and Windows launcher. F1 switches immediately and remembers the selection. The CLI accepts `--language`, and the launcher accepts `-Language`. - Compiles Rust messages into static tables at build time. Plain lookups borrow text, formatting can write into an existing buffer, and the FPS line is formatted only when the displayed reading or language changes. - Keeps the upstream HUD layout and the English diagnostics and progress lines used by scripts. The shader translator’s inputs are unchanged. ## How it was tested - At `424caf36`, the Windows build, all-features check, seven focused Rust tests and repository asset policy passed. - Checked bilingual CLI help and errors, language precedence, and PowerShell 5.1 progress parsing. Windows GDI found no missing glyphs in 358 Chinese HUD strings, and the shortened FPS line fit at the tested scales. - No game was launched. Full workspace tests were not run. ## Checked for overlap - [x] Checked related F1 localization work in #2244, #2352, #1997, #1977 and #2755. This update also covers the CLI and launcher through shared, compiled catalogs. Precompile controls remain separate in #3622.
copilot-pull-request-reviewer[bot] commented 2026-11-30 02:14:32 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by copilot-pull-request-reviewer[bot] on 2026-11-30T02:14:32Z.

Review: COMMENTED


Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:review:6106142093 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3617#pullrequestreview-6106142093). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-11-30T02:14:32Z. **Review:** COMMENTED --- Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
trustno1-coder commented 2026-12-01 18:50:23 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by trustno1-coder on 2026-12-01T18:50:23Z.


Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:comment:7321647529 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/3617#issuecomment-7321647529). Originally posted by [trustno1-coder](https://github.com/trustno1-coder) on 2026-12-01T18:50:23Z. --- Closing this as part of moving main to the texture and video-memory rework (v2026.12.01.01-test). A lot of the code changed, and this pull request no longer applies cleanly to it; it would need to be rewritten against the new main rather than rebased. Thank you for the work. If the change is still needed, please open a new pull request based on the current main.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
trustno1-coder/VIctory-NVIDIA!3617
No description provided.