Localize the F1 menu and fix Chinese text layout #1977
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!1977
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1977"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@wrq2007 on GitHub · 2026-11-29 05:27 UTC · original
wrq2007:pr/chinese-menu-localization→main· +633 −258 · 6 files · 3 commits · openSummary
This PR adds Chinese localization to the Windows F1 settings menu and key-binding screen:
VICTORY_MENU_LANGUAGE=auto|en|zhfor an explicit menu language choice.VICTORY_IME_ENGLISHas an independent opt-in switch for forcing the English (US) keyboard layout while the game window is focused.No wave64, BVH, cache, configuration, game asset, or binary changes are included.
Validation
cargo test --locked -p victory-gpu host::menu::tests— 10 passed, 0 failed, including explicit language selection and English fallback for帧生成.cargo test --locked -p victory-gpu— 591 passed, 0 failed, 44 ignored.cargo build --release -p victory --locked— passed.cargo xtask policy --staged— passed.git diff --checkCompatibility
Chinese rendering is selected only when the user allows it and Windows can provide a Chinese glyph; otherwise the existing ASCII English menu remains available. Keyboard layout activation is independent from the menu language and remains opt-in through
VICTORY_IME_ENGLISH.@ANDREANIADS on GitHub · 2026-11-29 05:53 UTC · original
At
1def5f3, the F1 menu checks whether the font can render简. In a synthetic test of the selector and paint logic, the label帧生成stayed Chinese with the probe enabled and became???with it disabled. The pt-BR and zh-CN scenarios gave identical results. This exercised character selection only, without GDI.Could the menu offer an explicit language choice and select English strings when Chinese rendering is unavailable? Keeping
VICTORY_IME_ENGLISHopt-in would also let users choose a menu language independently of whether the window requests a US keyboard layout on focus.@wrq2007 on GitHub · 2026-11-29 06:22 UTC · original
Addressed the review comments in
0fcd873:VICTORY_MENU_LANGUAGE=auto|en|zh.帧生成switches toFRAME GENERATIONwhen Chinese rendering is disabled.VICTORY_IME_ENGLISHas an independent opt-in switch.Validation: 10 menu tests passed; full
victory-gpusuite passed with 591 passed, 0 failed, 44 ignored; release build and asset policy passed.@SkivHisink on GitHub · 2026-11-29 06:28 UTC · original
The updated
auto|en|zhpicker covers English and Simplified Chinese. Could we also support Spanish, German, Russian, Hindi, and French?It would help if
autofollowed the user's Windows UI language preferences. The current font probe can select Chinese on a system whose UI is set to another language.I opened #1997 with all seven languages, Windows UI language detection, and a manual choice that applies immediately and is saved.
@wrq2007 on GitHub · 2026-11-29 06:34 UTC · original
Thanks for opening #1997 and adding the broader language support. My concern is maintenance and verification: I can review English and Chinese, but I can’t reliably validate Spanish, German, Russian, Hindi, or French. I’d prefer to keep this PR focused on English and Chinese unless there are contributors willing to help maintain and review those translations.
@ANDREANIADS on GitHub · 2026-11-29 07:29 UTC · original
At
0fcd873, I isolated the F1 save loop withauto → enand an FPS control1000 → 60. The temporaryvictory-settings.txtcontained bothVICTORY_MENU_LANGUAGE=enandVICTORY_MENU_FPS=60. Reading that same file withplay.rs’sparse_menuandsettingsproduced FPS60and no language key. The settings blocks fromscripts/play-foxhound.ps1gave the same result. Both skip genericVICTORY_MENU_*entries and restore FPS explicitly. With Chinese glyphs available, the missingenlets the next menu select Chinese again.Could both launch paths explicitly forward a saved
auto|en|zh, keeping the reserved-key filter? A round-trip test asserting both values in the launch environment would cover this. Only isolated configuration code ran.@wrq2007 on GitHub · 2026-11-29 07:38 UTC · original
Thanks for isolating this. Agreed: the saved value is persisted correctly, but both launch paths drop
VICTORY_MENU_LANGUAGEwhen building the child environment. I’ll explicitly forward the validatedauto|en|zhvalue inplay.rsandplay-foxhound.ps1, while keeping the reserved-key filter. I’ll also add a round-trip test withVICTORY_MENU_LANGUAGE=enandVICTORY_MENU_FPS=60asserting both values reach the launch environment. No new config file is needed.github-bot referenced this pull request2026-11-29 13:06:17 +00:00
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.Merge
Merge the changes and update on Forgejo.