Add Simplified Chinese localization and fix NO_PROXY startup crash #559

Open
HanKuCha wants to merge 1 commit from upstream-pr/559 into main
HanKuCha commented 2026-12-03 12:01:47 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by HanKuCha on 2026-12-03T12:01:47Z.


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.
<!-- greyfinch-sync:readmet3xt-lab/foxhound:issue:5626065739 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/559). Originally posted by [HanKuCha](https://github.com/HanKuCha) on 2026-12-03T12:01:47Z. --- 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.
copilot-pull-request-reviewer[bot] commented 2026-12-03 12:01:58 +00:00 (Migrated from github.com)

Imported from readmet3xt-lab/foxhound. Originally posted by copilot-pull-request-reviewer[bot] on 2026-12-03T12:01:58Z.

Review: COMMENTED


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.

<!-- greyfinch-sync:readmet3xt-lab/foxhound:review:6169370569 --> Imported from [readmet3xt-lab/foxhound](https://github.com/readmet3xt-lab/foxhound/pull/559#pullrequestreview-6169370569). Originally posted by [copilot-pull-request-reviewer[bot]](https://github.com/apps/copilot-pull-request-reviewer) on 2026-12-03T12:01:58Z. **Review:** COMMENTED --- 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.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/559:upstream-pr/559'
git switch 'upstream-pr/559'

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.

git switch 'main'
git merge --no-ff 'upstream-pr/559'
git switch 'upstream-pr/559'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/559'
git switch 'upstream-pr/559'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/559'
git switch 'main'
git merge --squash 'upstream-pr/559'
git switch 'main'
git merge --ff-only 'upstream-pr/559'
git switch 'main'
git merge 'upstream-pr/559'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
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.

Reference
readmet3xt-lab/foxhound!559
No description provided.