[PR #2795] [MERGED] launcher: Simplified Chinese #4621

Closed
opened 2026-11-03 05:06:43 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2795
Author: @s1f102500012
Created: 10/27/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @ludovic111

Base: main ← Head: launcher-simplified-chinese


📝 Commits (10+)

  • 66969d8 launcher: Simplified Chinese
  • 8c18d94 Merge remote-tracking branch 'origin/main' into cg24/f2795
  • 6a6b595 Launcher Chinese: the nightly strings main added since
  • 04ec037 Launcher Chinese: drop the coming-soon strings main removed
  • 3e930fc Launcher reference: the language setting lists zh
  • 2702542 launcher: complete Chinese strings and strengthen translation checks
  • 6b96bb9 Merge main into launcher-simplified-chinese
  • 9da77d9 Merge remote-tracking branch 'hr/main' into pr-2795
  • f7efb0d The launcher's Simplified Chinese covers the strings added on main: native mods, moving an instance to the Trash, and the build's new time estimate.
  • 35eb60e Merge main into launcher-simplified-chinese: keep Spanish and Chinese

📊 Changes

8 files changed (+343 additions, -73 deletions)

View changed files

📝 docs/launcher-commands.md (+1 -1)
📝 launcher/Cargo.lock (+2 -0)
📝 launcher/Cargo.toml (+5 -0)
📝 launcher/README.md (+2 -2)
➕ launcher/lang/zh.json (+196 -0)
📝 launcher/src/cli.rs (+24 -8)
📝 launcher/src/i18n.rs (+10 -4)
📝 launcher/src/i18n/tests.rs (+103 -58)

📄 Description

🤖 Opened by 時穂's (s1f102500012) AI agent (Claude Code), not by 時穂 themself.

What and why

The launcher speaks English, French and Russian (#2635, #2637); this adds Simplified Chinese, the language of a good share of Horizon's players (the zh_cn work in #1806, the CJK glyph report #2211).

  • String table: launcher/lang/zh.json, all 160 strings French and Russian have, written for Horizon. Terms follow vanilla's own zh_cn where the game has them (模组, 整合包, 皮肤, 披风, 局域网, 单人游戏); Latin words keep a space on each side, as the vanilla Chinese text does.
  • Which language: Language::Chinese, code zh, named 简体中文 in Settings > Launcher > Language. The system pick takes any zh locale (zh-Hans-CN, zh_CN.UTF-8; zh-TW too, where Simplified is still closer than English).
  • CLI: settings language system|en|fr|ru|zh, and its error names zh. README updated.
  • Tests: the table test checks zh like fr and ru (every string asked, none dropped, same {holes}, none empty); the system pick and the Settings lookup gain a Chinese case.
  • One wording works around line breaking: the Sculk card's headline is 你的全天候在线 Minecraft 服务器。 (the cyan part in the middle) so the line breaks at a space; with a comma after 服务器 the comma started the second line.

No code changes beyond the language list: pages still English in French and Russian (the data-collection dialog, the Home banner's "PLAYING NOW" and "VERSION") stay English here too.

Vanilla reference

Horizon-only (the launcher).

Self-check

pr_ready (tools/pr_ready.py --quick on MacBook-Tassel, against origin/main at 7262304a6, 32 s)

Check Result
Scope ✅ 5 files, +177 −8
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 331 passed (23 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (1 s)
launcher clippy ✅ (4 s)
launcher tests ❌ 192 passed, 1 failed (4 s)
Parity ➖ not run (--quick): CI's parity job picks the affected harnesses
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)

The one failure is backend::tests::an_app_bundle_updates_in_place ("still executable"): it fails the same way on main at 7262304a6 on this Mac (the freshly unpacked test bundle can't be run here), so it isn't this change. The launcher was built with gpui/runtime_shaders (no Metal toolchain here), as pr_ready picks.

Proof

  • cargo test --lib i18n: 3 passed.
  • CLI, scratch homes: settings language zh → "language": "zh"; settings language xx → "xx: say system, en, fr, ru or zh".
  • Window, scratch homes (HORIZON_LAUNCHER_HOME, HORIZON_HOME, XDG folders, no self-update), macOS arm64: opened in Chinese, the top bar, the sidebar, Home, the instance card, the resources rows and the Sculk card are Chinese. Chinese renders through the system's fallback in both the pixel face and Geist; no button is cut, and the Sculk headline breaks at the space before Minecraft.
  • Not tried: Windows and Linux, and the game itself.

Screenshots

简体中文, Home

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/2795 **Author:** [@s1f102500012](https://github.com/s1f102500012) **Created:** 10/27/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `launcher-simplified-chinese` --- ### 📝 Commits (10+) - [`66969d8`](https://github.com/horizon-rust/horizon/commit/66969d8a932693beb3105f5ba9a6cbc654e9d4e6) launcher: Simplified Chinese - [`8c18d94`](https://github.com/horizon-rust/horizon/commit/8c18d9429f4dbdd3fa7c6372904f3d8841e66c0f) Merge remote-tracking branch 'origin/main' into cg24/f2795 - [`6a6b595`](https://github.com/horizon-rust/horizon/commit/6a6b5957eb9359920a74a9c31a254b536b859c22) Launcher Chinese: the nightly strings main added since - [`04ec037`](https://github.com/horizon-rust/horizon/commit/04ec03745d680f33b7516f1ac1c5f61bcd69a5f5) Launcher Chinese: drop the coming-soon strings main removed - [`3e930fc`](https://github.com/horizon-rust/horizon/commit/3e930fc74b7d531176814d8f858d507a54738742) Launcher reference: the language setting lists zh - [`2702542`](https://github.com/horizon-rust/horizon/commit/2702542c7351a380a8a9fc039dd6391e8e653be1) launcher: complete Chinese strings and strengthen translation checks - [`6b96bb9`](https://github.com/horizon-rust/horizon/commit/6b96bb96b6c66d4b5427ff3d7b0e91748030f0ad) Merge main into launcher-simplified-chinese - [`9da77d9`](https://github.com/horizon-rust/horizon/commit/9da77d9d4bded935f1e8eebe6915ff9734051492) Merge remote-tracking branch 'hr/main' into pr-2795 - [`f7efb0d`](https://github.com/horizon-rust/horizon/commit/f7efb0d710bec05055bfcfd5b8fbc55aa91f1ea2) The launcher's Simplified Chinese covers the strings added on main: native mods, moving an instance to the Trash, and the build's new time estimate. - [`35eb60e`](https://github.com/horizon-rust/horizon/commit/35eb60e2f167b70322f17f1d9d63b5699b4472c2) Merge main into launcher-simplified-chinese: keep Spanish and Chinese ### 📊 Changes **8 files changed** (+343 additions, -73 deletions) <details> <summary>View changed files</summary> 📝 `docs/launcher-commands.md` (+1 -1) 📝 `launcher/Cargo.lock` (+2 -0) 📝 `launcher/Cargo.toml` (+5 -0) 📝 `launcher/README.md` (+2 -2) ➕ `launcher/lang/zh.json` (+196 -0) 📝 `launcher/src/cli.rs` (+24 -8) 📝 `launcher/src/i18n.rs` (+10 -4) 📝 `launcher/src/i18n/tests.rs` (+103 -58) </details> ### 📄 Description > 🤖 Opened by 時穂's (s1f102500012) AI agent (Claude Code), not by 時穂 themself. ## What and why The launcher speaks English, French and Russian (#2635, #2637); this adds Simplified Chinese, the language of a good share of Horizon's players (the `zh_cn` work in #1806, the CJK glyph report #2211). - **String table**: `launcher/lang/zh.json`, all 160 strings French and Russian have, written for Horizon. Terms follow vanilla's own `zh_cn` where the game has them (模组, 整合包, 皮肤, 披风, 局域网, 单人游戏); Latin words keep a space on each side, as the vanilla Chinese text does. - **Which language**: `Language::Chinese`, code `zh`, named 简体中文 in Settings > Launcher > Language. The system pick takes any `zh` locale (`zh-Hans-CN`, `zh_CN.UTF-8`; `zh-TW` too, where Simplified is still closer than English). - CLI: `settings language system|en|fr|ru|zh`, and its error names `zh`. README updated. - Tests: the table test checks `zh` like `fr` and `ru` (every string asked, none dropped, same `{holes}`, none empty); the system pick and the `Settings` lookup gain a Chinese case. - One wording works around line breaking: the Sculk card's headline is 你的全天候在线 Minecraft 服务器。 (the cyan part in the middle) so the line breaks at a space; with a comma after 服务器 the comma started the second line. No code changes beyond the language list: pages still English in French and Russian (the data-collection dialog, the Home banner's "PLAYING NOW" and "VERSION") stay English here too. ## Vanilla reference Horizon-only (the launcher). ## Self-check **pr_ready** (`tools/pr_ready.py --quick` on MacBook-Tassel, against origin/main at 7262304a6, 32 s) | Check | Result | | --- | --- | | Scope | ✅ 5 files, +177 −8 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 331 passed (23 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ (4 s) | | launcher tests | ❌ 192 passed, 1 failed (4 s) | | Parity | ➖ not run (--quick): CI's parity job picks the affected harnesses | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | The one failure is `backend::tests::an_app_bundle_updates_in_place` ("still executable"): it fails the same way on main at 7262304a6 on this Mac (the freshly unpacked test bundle can't be run here), so it isn't this change. The launcher was built with `gpui/runtime_shaders` (no Metal toolchain here), as pr_ready picks. ## Proof - `cargo test --lib i18n`: 3 passed. - CLI, scratch homes: `settings language zh` → `"language": "zh"`; `settings language xx` → "xx: say system, en, fr, ru or zh". - Window, scratch homes (`HORIZON_LAUNCHER_HOME`, `HORIZON_HOME`, XDG folders, no self-update), macOS arm64: opened in Chinese, the top bar, the sidebar, Home, the instance card, the resources rows and the Sculk card are Chinese. Chinese renders through the system's fallback in both the pixel face and Geist; no button is cut, and the Sculk headline breaks at the space before Minecraft. - Not tried: Windows and Linux, and the game itself. ## Screenshots | 简体中文, Home | |---| | ![](https://raw.githubusercontent.com/s1f102500012/horizon/screenshots/launcher-zh/home.png) | 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:06:43 +07:00
Sign in to join this conversation.
No milestone
No project
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
horizon-rust/horizon#4621
No description provided.