Localize F1 profiles and paging with English-by-default selection #2352

Open
github-bot wants to merge 8 commits from github-bot/gh-2352 into main AGit
Owner

@⁠Han-Wentao on GitHub · 2026-11-29 12:18 UTC · original
Han-Wentao:feat/f1-bilingual-compat → main · +3159 −196 · 39 files · 8 commits · draft

Stacked compatibility preview — not an independent localization rewrite

This draft integrates three currently open PRs so the new F1 controls can be reviewed together:

  • #2244 by @⁠Yuanzer: the existing localization framework, Chinese catalog and Unicode glyph renderer.
  • #2314: named F1 settings profiles (save/load/restore).
  • #2315: page and endpoint navigation.

Please do not merge the aggregate branch before deciding those dependencies. They are included as merge parents to make this preview buildable; the full Files changed tab therefore includes their work. The additional compatibility changes are isolated in commit ef3c41f (six files), on top of integration baseline a57c616. Before this PR is made merge-ready, rebase it onto the accepted dependencies and drop their already-merged commits.

The original #2314 and #2315 branches are unchanged and remain English-only, independently reviewable PRs. The localization implementation and renderer are credited to #2244, not introduced as new work here.

Compatibility changes

  • Keep LANGUAGE as the first F1 setting. Unset or empty language preferences consistently mean English, including the selector's displayed value; AUTO follows the Windows locale only when explicitly selected.
  • Localize the complete settings-profile dialog: actions, name entry, character count, confirmations, error/status messages and wrapped help.
  • Localize page numbers and keyboard hints in the main menu, bindings, save picker and profile picker using named placeholders rather than translating formatted strings.
  • Measure and truncate profile rows by Unicode display cells, not UTF-8 bytes. Preserve user profile names verbatim; the original safe ASCII filename rules remain unchanged.
  • Route page/endpoint keys into the profile picker without navigating while entering a name. Keep confirmation tokens language-independent and continue processing the input queue after profile actions.
  • Include the UI language in new profiles; load/restore applies it live, while old profiles without that key retain the current language.
  • Add compatibility documentation and regression tests. No lockfile or new dependency changes in the compatibility commit.

Validation performed here

  • PASS: victory-core library tests — 37 tests, including English-default behavior, all 25 additional catalog entries and placeholder/width checks.
  • PASS: standalone tests compiled directly from the production settings_profiles.rs and menu_navigation.rs — 15 tests, including old-profile compatibility and language save/load/restore.
  • PASS: Windows-target all-targets/all-features Clippy for victory-gpu and its dependencies with warnings denied:
    cargo +1.98.1 clippy --locked --offline --target x86_64-pc-windows-msvc -p victory-gpu --all-targets --all-features --features blake3/pure -- -D warnings
    The pure Blake3 feature avoids requiring the MSVC assembler in the cross-check environment.
  • PASS: staged asset policy — all six compatibility files; git diff whitespace check.
  • Added and type-checked three Windows menu tests for bilingual rows/confirmation tokens, profile paging/name-entry isolation and live language restore. These Windows tests were not executed here.

No real-game/GPU smoke test or full Windows workspace test execution is claimed. This is a draft integration preview pending the dependency decisions and Windows runtime validation.

**@⁠Han-Wentao** on GitHub · 2026-11-29 12:18 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2352) `Han-Wentao:feat/f1-bilingual-compat` → `main` · +3159 −196 · 39 files · 8 commits · draft ## Stacked compatibility preview — not an independent localization rewrite This draft integrates three currently open PRs so the new F1 controls can be reviewed together: - #2244 by @⁠Yuanzer: the existing localization framework, Chinese catalog and Unicode glyph renderer. - #2314: named F1 settings profiles (save/load/restore). - #2315: page and endpoint navigation. **Please do not merge the aggregate branch before deciding those dependencies.** They are included as merge parents to make this preview buildable; the full Files changed tab therefore includes their work. The additional compatibility changes are isolated in [commit ef3c41f](https://github.com/Han-Wentao/VIctory-NVIDIA/commit/ef3c41f27da971cf3fbb4673b3fa06461ca7812a) (six files), on top of integration baseline a57c616. Before this PR is made merge-ready, rebase it onto the accepted dependencies and drop their already-merged commits. The original #2314 and #2315 branches are unchanged and remain English-only, independently reviewable PRs. The localization implementation and renderer are credited to #2244, not introduced as new work here. ## Compatibility changes - Keep LANGUAGE as the first F1 setting. Unset or empty language preferences consistently mean English, including the selector's displayed value; AUTO follows the Windows locale only when explicitly selected. - Localize the complete settings-profile dialog: actions, name entry, character count, confirmations, error/status messages and wrapped help. - Localize page numbers and keyboard hints in the main menu, bindings, save picker and profile picker using named placeholders rather than translating formatted strings. - Measure and truncate profile rows by Unicode display cells, not UTF-8 bytes. Preserve user profile names verbatim; the original safe ASCII filename rules remain unchanged. - Route page/endpoint keys into the profile picker without navigating while entering a name. Keep confirmation tokens language-independent and continue processing the input queue after profile actions. - Include the UI language in new profiles; load/restore applies it live, while old profiles without that key retain the current language. - Add compatibility documentation and regression tests. No lockfile or new dependency changes in the compatibility commit. ## Validation performed here - PASS: victory-core library tests — 37 tests, including English-default behavior, all 25 additional catalog entries and placeholder/width checks. - PASS: standalone tests compiled directly from the production settings_profiles.rs and menu_navigation.rs — 15 tests, including old-profile compatibility and language save/load/restore. - PASS: Windows-target all-targets/all-features Clippy for victory-gpu and its dependencies with warnings denied: `cargo +1.98.1 clippy --locked --offline --target x86_64-pc-windows-msvc -p victory-gpu --all-targets --all-features --features blake3/pure -- -D warnings` The pure Blake3 feature avoids requiring the MSVC assembler in the cross-check environment. - PASS: staged asset policy — all six compatibility files; git diff whitespace check. - Added and type-checked three Windows menu tests for bilingual rows/confirmation tokens, profile paging/name-entry isolation and live language restore. **These Windows tests were not executed here.** No real-game/GPU smoke test or full Windows workspace test execution is claimed. This is a draft integration preview pending the dependency decisions and Windows runtime validation.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 12:21:48 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-gpu/src/host.rs
  • crates/victory-gpu/src/host/font.rs
  • crates/victory-gpu/src/host/menu.rs
  • crates/victory-gpu/src/host/panel.rs
  • crates/victory-gpu/src/pipeline/make.rs
  • crates/victory-gpu/src/resource.rs
  • crates/victory-gpu/src/shadow.rs
  • crates/victory-gpu/src/streamline.rs
  • crates/victory-gpu/src/watch.rs
  • crates/victory-hle/src/modules/gameinput.rs
  • crates/victory-loader/src/crash.rs
  • crates/victory-shader/src/emit/lower/analysis.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/2352/head:github-bot/gh-2352'
git switch 'github-bot/gh-2352'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2352'
git switch 'github-bot/gh-2352'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2352'
git switch 'github-bot/gh-2352'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2352'
git switch 'main'
git merge --squash 'github-bot/gh-2352'
git switch 'main'
git merge --ff-only 'github-bot/gh-2352'
git switch 'main'
git merge 'github-bot/gh-2352'
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!2352
No description provided.