[PR #5644] [MERGED] Localization: HDR calibration, splitscreen profiles, Play with Friends and the on-screen keyboard read the language table #6411

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5644
Author: @mariuslozo-boop
Created: 11/1/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: i18n/horizon-strings-b


📝 Commits (10+)

  • b3209dd Localization: the title footer and the Extras page read the language table
  • 570e3c9 Localization: test the bundled horizon lang files against en_us
  • cddfdce Localization: the lang test checks every key the code names, CRLF or not
  • fd7a471 Localization: HDR calibration, profiles, Play with Friends and the keyboard read the language table
  • 0e64bf0 Localization: splitscreen profile keys under horizon.splitscreen.profiles
  • aec9421 Merge main into #5643: the Extras page's Splitscreen switch gets its language keys
  • 3d26d4c Merge #5643 (main merged) into #5644
  • 5d01df7 Merge main into #5643: Hide block-break particles, UI sound reserve and their headers read the language table
  • e4bbe60 Merge #5643 (main merged) into #5644
  • 79b92a3 Merge main into #5643: the new Chat rows read the language table

📊 Changes

12 files changed (+515 additions, -91 deletions)

View changed files

📝 crates/horizon-client-core/src/lang.rs (+142 -0)
📝 crates/horizon-client-render/src/extras.rs (+63 -11)
📝 crates/horizon-client-render/src/graphics_ui.rs (+7 -4)
📝 crates/horizon-client-render/src/hdr_calibration.rs (+27 -15)
📝 crates/horizon-client-render/src/options_ui.rs (+3 -3)
📝 crates/horizon-client-render/src/split_profiles.rs (+84 -18)
📝 crates/horizon-client/assets/horizon/lang/en_us.json (+94 -1)
📝 crates/horizon-client/src/friends_screen.rs (+47 -17)
📝 crates/horizon-client/src/game/friends.rs (+27 -9)
📝 crates/horizon-client/src/game/screens.rs (+1 -1)
📝 crates/horizon-client/src/osk.rs (+16 -11)
📝 crates/horizon-client/src/title.rs (+4 -1)

📄 Description

🤖 Opened by mariuslozo-boop's AI agent (Claude Code, Claude Sonnet 5.5 + Claude Opus 5.5 review), not by mariuslozo-boop personally.

What and why

Refs #1927 (2 of 3; stacked on #5643, whose commits it includes until that one merges; the last commit is this PR). More of Horizon's own screens drew English literals, or looked up keys en_us.json didn't have. They now go through the language table:

  • HDR calibration: title, the three step names and hints, Cancel/Back/Save/Next (vanilla's gui.cancel, gui.back, selectWorld.edit.save) and the "Shortcut:" row. On Options > Graphics > HDR, the descriptions and the Calibrate buttons that had no en_us entry.
  • Splitscreen profiles: every label and line, under horizon.splitscreen.profiles.* (renamed from horizon.profiles.* in review, as more splitscreen strings are coming).
  • Play with Friends: the screen and its chat notices. (The two "Connected to your friend" loading lines were keyed on main meanwhile, as horizon.multiplayer.connected_friend_*; this branch uses those.)
  • The on-screen keyboard: its key labels and button hints.

English text stays the fallback (lang::get_or), and each of the 53 new en_us.json keys has exactly the text it replaces. A string that holds a value uses a %s template: "HDR Calibration %s/%s: %s", "Forget %s", "Couldn't share the world: %s". The English output is the same, and horizon-ctl's widget ids are unchanged. friends_screen::TITLE stays the English name the screen is known by.

Kind

  • parity: Horizon now does what vanilla 26.3 does
  • bug: a crash or a breakage
  • perf: faster, or less memory
  • feature: something new for players (listed under New in the release notes)
  • extra: Horizon-only, off by default
  • tooling: tools, CI, tests, harnesses
  • docs

Vanilla reference

Horizon-only screens; vanilla's own keys reused where vanilla has the word (gui.cancel, gui.back, gui.done, selectWorld.edit.save).

Other projects' code

none

Self-check

  • #5643's lang tests cover the new keys: every horizon.* key named in the sources is in en_us.json.
  • A script compared every get_or(key, english) and every looked-up key with en_us.json and vanilla's: none missing, none differs.

pr_ready (tools/pr_ready.py --base upstream/main on PCDKBLENDER, against upstream/main at 78043f09a, 5 min 58 s)

Check Result
Scope ⚠️ 12 files, +489 −88; 577 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 511 passed (52 s)
rustfmt ✅ (8 s)
clippy ✅ (18 s)
tests: horizon-client, horizon-client-core, horizon-client-render ✅ 2539 passed (4 min 31 s)
doc tests ✅ 0 passed (5 s)
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ❌ 373 affected, (1 s)
Label player-facing: feature if players get something new, no label for a fix (release-now if urgent)
  • Scope counts #5643's commits too, until it merges; this one alone is 8 files, +263 −76.
  • Parity: this was run on Windows, where the runner needs fcntl and can't start. The affected harnesses run in CI (run-parity).

Not tested: screenshots of the calibration screen, the profile page and the on-screen keyboard in another language (the Graphics > HDR page was checked in German and French, Play with Friends in German).

🤖 Generated with Claude Code

https://claude.ai/code/session_01RodDbPWCByh96WKcbiEQpB


🔄 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/5644 **Author:** [@mariuslozo-boop](https://github.com/mariuslozo-boop) **Created:** 11/1/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `i18n/horizon-strings-b` --- ### 📝 Commits (10+) - [`b3209dd`](https://github.com/horizon-rust/horizon/commit/b3209dd9b9bfdc78f393435e99c559b9a5af75bf) Localization: the title footer and the Extras page read the language table - [`570e3c9`](https://github.com/horizon-rust/horizon/commit/570e3c9656b6e464dad31a293b5e586f4a4dff3b) Localization: test the bundled horizon lang files against en_us - [`cddfdce`](https://github.com/horizon-rust/horizon/commit/cddfdcea3461aa6c973f8f7aaa91098d4730f2e9) Localization: the lang test checks every key the code names, CRLF or not - [`fd7a471`](https://github.com/horizon-rust/horizon/commit/fd7a47175c6931a0608e39ed8310af172f07ab39) Localization: HDR calibration, profiles, Play with Friends and the keyboard read the language table - [`0e64bf0`](https://github.com/horizon-rust/horizon/commit/0e64bf0818e57b4c37cae4e71414a0f9cda4a07c) Localization: splitscreen profile keys under horizon.splitscreen.profiles - [`aec9421`](https://github.com/horizon-rust/horizon/commit/aec9421cf3d14339dd173838a563ce05d4cd1230) Merge main into #5643: the Extras page's Splitscreen switch gets its language keys - [`3d26d4c`](https://github.com/horizon-rust/horizon/commit/3d26d4ccfad499d9d9b4c32f30665a76b8f61768) Merge #5643 (main merged) into #5644 - [`5d01df7`](https://github.com/horizon-rust/horizon/commit/5d01df7504f0eef3ffa1fc80006ca9a97eea1874) Merge main into #5643: Hide block-break particles, UI sound reserve and their headers read the language table - [`e4bbe60`](https://github.com/horizon-rust/horizon/commit/e4bbe6055b47d07718443b9647274ee132942391) Merge #5643 (main merged) into #5644 - [`79b92a3`](https://github.com/horizon-rust/horizon/commit/79b92a3f8f5593341ad30a2f40cc7d0b948f1a25) Merge main into #5643: the new Chat rows read the language table ### 📊 Changes **12 files changed** (+515 additions, -91 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-core/src/lang.rs` (+142 -0) 📝 `crates/horizon-client-render/src/extras.rs` (+63 -11) 📝 `crates/horizon-client-render/src/graphics_ui.rs` (+7 -4) 📝 `crates/horizon-client-render/src/hdr_calibration.rs` (+27 -15) 📝 `crates/horizon-client-render/src/options_ui.rs` (+3 -3) 📝 `crates/horizon-client-render/src/split_profiles.rs` (+84 -18) 📝 `crates/horizon-client/assets/horizon/lang/en_us.json` (+94 -1) 📝 `crates/horizon-client/src/friends_screen.rs` (+47 -17) 📝 `crates/horizon-client/src/game/friends.rs` (+27 -9) 📝 `crates/horizon-client/src/game/screens.rs` (+1 -1) 📝 `crates/horizon-client/src/osk.rs` (+16 -11) 📝 `crates/horizon-client/src/title.rs` (+4 -1) </details> ### 📄 Description > 🤖 Opened by mariuslozo-boop's AI agent (Claude Code, Claude Sonnet 5.5 + Claude Opus 5.5 review), not by mariuslozo-boop personally. ## What and why Refs #1927 (2 of 3; stacked on #5643, whose commits it includes until that one merges; the last commit is this PR). More of Horizon's own screens drew English literals, or looked up keys en_us.json didn't have. They now go through the language table: - **HDR calibration:** title, the three step names and hints, Cancel/Back/Save/Next (vanilla's `gui.cancel`, `gui.back`, `selectWorld.edit.save`) and the "Shortcut:" row. On Options > Graphics > HDR, the descriptions and the Calibrate buttons that had no en_us entry. - **Splitscreen profiles:** every label and line, under `horizon.splitscreen.profiles.*` (renamed from `horizon.profiles.*` in review, as more splitscreen strings are coming). - **Play with Friends:** the screen and its chat notices. (The two "Connected to your friend" loading lines were keyed on main meanwhile, as `horizon.multiplayer.connected_friend_*`; this branch uses those.) - **The on-screen keyboard:** its key labels and button hints. English text stays the fallback (`lang::get_or`), and each of the 53 new en_us.json keys has exactly the text it replaces. A string that holds a value uses a `%s` template: "HDR Calibration %s/%s: %s", "Forget %s", "Couldn't share the world: %s". The English output is the same, and horizon-ctl's widget ids are unchanged. `friends_screen::TITLE` stays the English name the screen is known by. ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [x] bug: a crash or a breakage - [ ] perf: faster, or less memory - [ ] feature: something new for players (listed under New in the release notes) - [ ] extra: Horizon-only, off by default - [ ] tooling: tools, CI, tests, harnesses - [ ] docs ## Vanilla reference Horizon-only screens; vanilla's own keys reused where vanilla has the word (`gui.cancel`, `gui.back`, `gui.done`, `selectWorld.edit.save`). ## Other projects' code none ## Self-check - #5643's lang tests cover the new keys: every `horizon.*` key named in the sources is in en_us.json. - A script compared every `get_or(key, english)` and every looked-up key with en_us.json and vanilla's: none missing, none differs. **pr_ready** (`tools/pr_ready.py --base upstream/main` on PCDKBLENDER, against upstream/main at 78043f09a, 5 min 58 s) | Check | Result | | --- | --- | | Scope | ⚠️ 12 files, +489 −88; 577 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 511 passed (52 s) | | rustfmt | ✅ (8 s) | | clippy | ✅ (18 s) | | tests: horizon-client, horizon-client-core, horizon-client-render | ✅ 2539 passed (4 min 31 s) | | doc tests | ✅ 0 passed (5 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ❌ 373 affected, (1 s) | | Label | player-facing: `feature` if players get something new, no label for a fix (`release-now` if urgent) | - Scope counts #5643's commits too, until it merges; this one alone is 8 files, +263 −76. - Parity: this was run on Windows, where the runner needs `fcntl` and can't start. The affected harnesses run in CI (`run-parity`). Not tested: screenshots of the calibration screen, the profile page and the on-screen keyboard in another language (the Graphics > HDR page was checked in German and French, Play with Friends in German). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01RodDbPWCByh96WKcbiEQpB --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:20:08 +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#6411
No description provided.