Add seven-language support to the F1 menu #1997

Open
github-bot wants to merge 3 commits from github-bot/gh-1997 into main AGit
Owner

@⁠SkivHisink on GitHub · 2026-11-29 06:28 UTC · original
SkivHisink:main → main · +962 −123 · 6 files · 3 commits · open

What it changes

  • Adds an Interface Language setting to F1. The default follows the first supported language in the user's Windows UI preferences and falls back to English.
  • Applies a manual choice immediately and saves it in victory-settings.txt as VICTORY_UI_LANGUAGE.
  • Covers settings, key bindings, help text, and save import/export in English, Simplified Chinese, Spanish, German, Russian, Hindi, and French.
  • Uses Windows text shaping for Unicode labels and keeps prompts and confirmation messages visible at 640×360.

How it was tested

  • Windows release build passed.
  • cargo test passed for victory and victory-gpu (622 passed, 44 ignored).
  • A standalone Windows rendering probe checked the translated catalog at 1× and 2×, including Simplified Chinese glyphs and Hindi conjuncts.
  • In-game validation is pending.

Checked for overlap

  • Searched open pull requests for F1 localization. #1977 also changes the F1 menu and focuses on Simplified Chinese.
**@⁠SkivHisink** on GitHub · 2026-11-29 06:28 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1997) `SkivHisink:main` → `main` · +962 −123 · 6 files · 3 commits · open ## What it changes - Adds an Interface Language setting to F1. The default follows the first supported language in the user's Windows UI preferences and falls back to English. - Applies a manual choice immediately and saves it in `victory-settings.txt` as `VICTORY_UI_LANGUAGE`. - Covers settings, key bindings, help text, and save import/export in English, Simplified Chinese, Spanish, German, Russian, Hindi, and French. - Uses Windows text shaping for Unicode labels and keeps prompts and confirmation messages visible at 640×360. ## How it was tested - Windows release build passed. - `cargo test` passed for `victory` and `victory-gpu` (622 passed, 44 ignored). - A standalone Windows rendering probe checked the translated catalog at 1× and 2×, including Simplified Chinese glyphs and Hindi conjuncts. - In-game validation is pending. ## Checked for overlap - [x] Searched open pull requests for F1 localization. #1977 also changes the F1 menu and focuses on Simplified Chinese.
Follow the preferred Windows UI language by default. Apply manual
language changes immediately and save them in victory-settings.txt.

Translate settings, key bindings, and save import and export messages.
Use Windows text shaping for Unicode, including Hindi conjuncts.

Co-Authored-By: GPT-6.2 Sol <[email protected]>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 06:28:38 +00:00
Author
Owner

@⁠ANDREANIADS on GitHub · 2026-11-29 07:21 UTC · original

At 62c0934, the PR lists Simplified Chinese and says Auto uses the first supported UI preference. I ran preferred_language and from_tag in isolation with synthetic UTF-16 lists. [zh-Hant-HK, fr-CA] and [zh-Hans-CN, fr-CA] both selected the Simplified Chinese catalog. [ja-JP, fr-CA] selected French, and an empty list fell back to English.

The existing single-tag test explicitly accepts zh-Hant-HK. Could you clarify the intended Auto behavior with the two-preference case? If support is script-specific, skip explicit Hant and continue to French. If all zh variants intentionally use Simplified Chinese ahead of later preferences, please document that fallback.

**@⁠ANDREANIADS** on GitHub · 2026-11-29 07:21 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1997#issuecomment-7252419378) At `62c0934`, the PR lists Simplified Chinese and says Auto uses the first supported UI preference. I ran `preferred_language` and `from_tag` in isolation with synthetic UTF-16 lists. `[zh-Hant-HK, fr-CA]` and `[zh-Hans-CN, fr-CA]` both selected the Simplified Chinese catalog. `[ja-JP, fr-CA]` selected French, and an empty list fell back to English. The existing single-tag test explicitly accepts `zh-Hant-HK`. Could you clarify the intended Auto behavior with the two-preference case? If support is script-specific, skip explicit Hant and continue to French. If all `zh` variants intentionally use Simplified Chinese ahead of later preferences, please document that fallback.
Continue to the next supported Windows UI language for Traditional
Chinese preferences. Add regression coverage for both Chinese scripts
and the English fallback.

Co-Authored-By: GPT-6.2 Sol <[email protected]>
Author
Owner

@⁠SkivHisink on GitHub · 2026-11-29 08:18 UTC · original

@⁠ANDREANIADS Thanks for the repro. Auto now skips Traditional Chinese preferences and continues to the next supported Windows UI language. The regression test covers both examples: [zh-Hant-HK, fr-CA] selects French, and [zh-Hans-CN, fr-CA] selects Simplified Chinese. If there is no supported preference, Auto falls back to English. The Windows release build and all 623 tests passed.

**@⁠SkivHisink** on GitHub · 2026-11-29 08:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1997#issuecomment-7253020785) @⁠ANDREANIADS Thanks for the repro. Auto now skips Traditional Chinese preferences and continues to the next supported Windows UI language. The regression test covers both examples: [zh-Hant-HK, fr-CA] selects French, and [zh-Hans-CN, fr-CA] selects Simplified Chinese. If there is no supported preference, Auto falls back to English. The Windows release build and all 623 tests passed.
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/host/menu.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1997/head:github-bot/gh-1997'
git switch 'github-bot/gh-1997'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1997'
git switch 'github-bot/gh-1997'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1997'
git switch 'github-bot/gh-1997'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1997'
git switch 'main'
git merge --squash 'github-bot/gh-1997'
git switch 'main'
git merge --ff-only 'github-bot/gh-1997'
git switch 'main'
git merge 'github-bot/gh-1997'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

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