Add Simplified Chinese localization and fix NO_PROXY startup crash #559

Open
github-bot wants to merge 1 commit from github-bot/gh-559 into main AGit
Owner

@⁠HanKuCha on GitHub · 2026-12-03 12:01 UTC · original
HanKuCha:localize-zh-cn → main · +671 −68 · 3 files · 1 commits · open

Adds a Simplified Chinese interface to the FoxHound launcher and fixes a startup failure on systems where both NO_PROXY and no_proxy are defined.

What changed

  • New launcher/Localization.cs: the Chinese strings for the launcher windows, option labels and values, hints, loading stages, controls and dialogs.
  • launcher/Launcher.cs: routes the launcher UI through Loc.T / Loc.Apply; translates dynamic status text and message boxes.
  • scripts/build-launcher.ps1: compiles every launcher/*.cs file so the new localization file is part of the build.
  • ProcessStartInfo.Info: builds the child environment explicitly with a case-insensitive dictionary and writes it through the private _environmentVariables field. The old i.EnvironmentVariables getter copied both NO_PROXY and no_proxy into a StringDictionary and threw ArgumentException, which surfaced as Could not prepare: ....

Verification

  • powershell -File scripts/build-launcher.ps1 succeeds with the in-box .NET Framework compiler.
  • The built launcher shows the Chinese UI for the main window, option labels/values, folder fields, controls, loading window and dialogs.
  • Info() returns a valid ProcessStartInfo; launching cmd /c set through it works with duplicate proxy variables present, and a full play launch reaches the game without the Could not prepare error.
**@⁠HanKuCha** on GitHub · 2026-12-03 12:01 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/559) `HanKuCha:localize-zh-cn` → `main` · +671 −68 · 3 files · 1 commits · open Adds a Simplified Chinese interface to the FoxHound launcher and fixes a startup failure on systems where both `NO_PROXY` and `no_proxy` are defined. ## What changed - New `launcher/Localization.cs`: the Chinese strings for the launcher windows, option labels and values, hints, loading stages, controls and dialogs. - `launcher/Launcher.cs`: routes the launcher UI through `Loc.T` / `Loc.Apply`; translates dynamic status text and message boxes. - `scripts/build-launcher.ps1`: compiles every `launcher/*.cs` file so the new localization file is part of the build. - `ProcessStartInfo.Info`: builds the child environment explicitly with a case-insensitive dictionary and writes it through the private `_environmentVariables` field. The old `i.EnvironmentVariables` getter copied both `NO_PROXY` and `no_proxy` into a `StringDictionary` and threw `ArgumentException`, which surfaced as `Could not prepare: ...`. ## Verification - `powershell -File scripts/build-launcher.ps1` succeeds with the in-box .NET Framework compiler. - The built launcher shows the Chinese UI for the main window, option labels/values, folder fields, controls, loading window and dialogs. - `Info()` returns a valid `ProcessStartInfo`; launching `cmd /c set` through it works with duplicate proxy variables present, and a full play launch reaches the game without the `Could not prepare` error.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-03 12:06:25 +00:00
Author
Owner

@⁠copilot-pull-request-reviewer[bot] on GitHub · 2026-12-03 12:01 UTC · original · reviewed

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.

**@⁠copilot-pull-request-reviewer[bot]** on GitHub · 2026-12-03 12:01 UTC · [original](https://github.com/readmet3xt-lab/foxhound/pull/559#pullrequestreview-6169370569) · **reviewed** 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.
github-bot force-pushed github-bot/gh-559 from 0f36b45d63 to 45ef6650d7 2026-12-04 15:51:40 +00:00 Compare
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

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

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-559'
git switch 'github-bot/gh-559'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-559'
git switch 'github-bot/gh-559'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-559'
git switch 'main'
git merge --squash 'github-bot/gh-559'
git switch 'main'
git merge --ff-only 'github-bot/gh-559'
git switch 'main'
git merge 'github-bot/gh-559'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.