Localize the F1 menu and fix Chinese text layout #1977
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrq2007 on 2026-11-29T05:27:36Z.
Summary
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ANDREANIADS on 2026-11-29T05:53:40Z.
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrq2007 on 2026-11-29T06:22:35Z.
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by SkivHisink on 2026-11-29T06:28:52Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrq2007 on 2026-11-29T06:34:45Z.
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.
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by ANDREANIADS on 2026-11-29T07:29:20Z.
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.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by wrq2007 on 2026-11-29T07:38:22Z.
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.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.