[PR #5645] [MERGED] Localization: Horizon's own strings in Polish, Ukrainian, German and French #6414

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

📋 Pull Request Information

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

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


📝 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
  • 15b1dba Localization: complete Polish and Ukrainian for Horizon's own strings
  • ee55ff3 Localization: add German and French for Horizon's own strings
  • e1ba0bf Localization: Swiss German without ß; three translation fixes
  • 178ce86 Localization: translations follow the splitscreen.profiles keys and main's friend keys
  • aec9421 Merge main into #5643: the Extras page's Splitscreen switch gets its language keys

📊 Changes

16 files changed (+1670 additions, -103 deletions)

View changed files

📝 crates/horizon-client-core/src/lang.rs (+169 -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/de_de.json (+293 -0)
📝 crates/horizon-client/assets/horizon/lang/en_us.json (+94 -1)
➕ crates/horizon-client/assets/horizon/lang/fr_fr.json (+293 -0)
📝 crates/horizon-client/assets/horizon/lang/pl_pl.json (+271 -6)
📝 crates/horizon-client/assets/horizon/lang/uk_ua.json (+271 -6)
📝 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 (3 of 3; stacked on #5644, which is stacked on #5643; the last four commits are this PR). Horizon's own strings in four more languages, all 291 keys of en_us.json:

  • pl_pl and uk_ua are completed (they had about 200 keys).
  • de_de and fr_fr are new. de_at reads de_de's file, and fr_ca and fr_ch read fr_fr's, as the es_* variants read es_es. de_ch reads de_de's file with "ß" spelled "ss", as vanilla's de_ch does: its file has one "ß", against 312 in de_de's.
  • After the rebase, de_de and fr_fr also translate main's two new keys (horizon.multiplayer.not_signed_in, invalid_address) and use main's names for the friend lines; pl_pl and uk_ua already had them on main.

These are AI translations (Claude), not reviewed by a native speaker; corrections are welcome. Terms and register follow vanilla's files in each language:

  • German "du", French "vous", Ukrainian "ви";
  • vanilla's words for Done, Multiplayer and Direct Connection ("Connexion rapide" in fr_fr);
  • French puts a space before ":" and "?".

Placeholders match the English text, and the lang test checks that.

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 strings. Terms were checked against vanilla's de_de, fr_fr, pl_pl and uk_ua; the regional variants against vanilla's de_ch (no "ß"), fr_ca and fr_ch.

Other projects' code

none

Self-check

  • The lang tests (from #5643) pass for all nine bundled files. Every key is in en_us.json, no key repeats, and the placeholders match.
  • The language test loads de_de and fr_fr, checks that de_at, fr_ca and fr_ch get the same strings, and checks that de_ch has no "ß". It fails without the de_ch mapping.
  • Screenshots below show no clipped text on the title screen, Options > Horizon, Extras and Graphics > HDR (de, fr, pl, uk) or Play with Friends (de). "Peak Brightness: Auto (1000 nits)" is already cut in English.

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

Check Result
Scope ⚠️ 16 files, +1646 −90; 1736 lines of code: over 500, split it if it can ship in parts
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 511 passed (57 s)
rustfmt ✅ (8 s)
clippy ✅ (19 s)
tests: horizon-client, horizon-client-core, horizon-client-render ✅ 2539 passed (10 min 59 s)
doc tests ✅ 0 passed (3 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 the commits of #5643 and #5644 until they merge. This one alone is 5 files, +1157 −2, almost all of it the four lang files. The horizon-client-render hang an earlier run saw is the GPU-test one described under Tests.
  • Parity: this was run on Windows, where the runner needs fcntl and can't start. The affected harnesses run in CI (run-parity).
  • Tests: run with RUST_TEST_THREADS=2. On this Windows machine, 4 or more horizon-client-render GPU tests at once hang (they pass alone and with 2 threads); the renderer is untouched here.

Known, not changed here: Horizon's own pages build "Caption: value" with a fixed ": " (Extras, Graphics), so French shows "Pleine luminosité: Non" where vanilla's options.generic_value would give "Pleine luminosité : Non".

Screenshots

The shots were taken before the review's last fixes: uk's Extras caption still reads "Коліщатко: перенос" on uk_ua/options-extras-2.png, now "Перенос коліщатком". Retake that one, or leave it out.

(attach from .local/agent-i18n/<lang>/shots/: options-extras.png and title.png for de_de, fr_fr, pl_pl, uk_ua; options-graphics-hdr.png for de_de and fr_fr; friends.png for de_de)

🤖 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/5645 **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-c` --- ### 📝 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 - [`15b1dba`](https://github.com/horizon-rust/horizon/commit/15b1dbaa1403f9d98751ef343f126d2a8aa4a91c) Localization: complete Polish and Ukrainian for Horizon's own strings - [`ee55ff3`](https://github.com/horizon-rust/horizon/commit/ee55ff3d671792229bdd11d624a3e84bdbff59f4) Localization: add German and French for Horizon's own strings - [`e1ba0bf`](https://github.com/horizon-rust/horizon/commit/e1ba0bf5334d2005fd1a84dc293a62121db0aadf) Localization: Swiss German without ß; three translation fixes - [`178ce86`](https://github.com/horizon-rust/horizon/commit/178ce862a78a24ab77aef026b70b9754d6f73d8f) Localization: translations follow the splitscreen.profiles keys and main's friend keys - [`aec9421`](https://github.com/horizon-rust/horizon/commit/aec9421cf3d14339dd173838a563ce05d4cd1230) Merge main into #5643: the Extras page's Splitscreen switch gets its language keys ### 📊 Changes **16 files changed** (+1670 additions, -103 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-core/src/lang.rs` (+169 -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/de_de.json` (+293 -0) 📝 `crates/horizon-client/assets/horizon/lang/en_us.json` (+94 -1) ➕ `crates/horizon-client/assets/horizon/lang/fr_fr.json` (+293 -0) 📝 `crates/horizon-client/assets/horizon/lang/pl_pl.json` (+271 -6) 📝 `crates/horizon-client/assets/horizon/lang/uk_ua.json` (+271 -6) 📝 `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 (3 of 3; stacked on #5644, which is stacked on #5643; the last four commits are this PR). Horizon's own strings in four more languages, all 291 keys of en_us.json: - **pl_pl and uk_ua** are completed (they had about 200 keys). - **de_de and fr_fr** are new. de_at reads de_de's file, and fr_ca and fr_ch read fr_fr's, as the es_* variants read es_es. de_ch reads de_de's file with "ß" spelled "ss", as vanilla's de_ch does: its file has one "ß", against 312 in de_de's. - After the rebase, de_de and fr_fr also translate main's two new keys (`horizon.multiplayer.not_signed_in`, `invalid_address`) and use main's names for the friend lines; pl_pl and uk_ua already had them on main. These are AI translations (Claude), not reviewed by a native speaker; corrections are welcome. Terms and register follow vanilla's files in each language: - German "du", French "vous", Ukrainian "ви"; - vanilla's words for Done, Multiplayer and Direct Connection ("Connexion rapide" in fr_fr); - French puts a space before ":" and "?". Placeholders match the English text, and the lang test checks that. ## Kind - [ ] parity: Horizon now does what vanilla 26.3 does - [ ] bug: a crash or a breakage - [ ] perf: faster, or less memory - [x] 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 strings. Terms were checked against vanilla's de_de, fr_fr, pl_pl and uk_ua; the regional variants against vanilla's de_ch (no "ß"), fr_ca and fr_ch. ## Other projects' code none ## Self-check - The lang tests (from #5643) pass for all nine bundled files. Every key is in en_us.json, no key repeats, and the placeholders match. - The language test loads de_de and fr_fr, checks that de_at, fr_ca and fr_ch get the same strings, and checks that de_ch has no "ß". It fails without the de_ch mapping. - Screenshots below show no clipped text on the title screen, Options > Horizon, Extras and Graphics > HDR (de, fr, pl, uk) or Play with Friends (de). "Peak Brightness: Auto (1000 nits)" is already cut in English. **pr_ready** (`tools/pr_ready.py --base upstream/main` on PCDKBLENDER, against upstream/main at 78043f09a, 12 min 31 s) | Check | Result | | --- | --- | | Scope | ⚠️ 16 files, +1646 −90; 1736 lines of code: over 500, split it if it can ship in parts | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 511 passed (57 s) | | rustfmt | ✅ (8 s) | | clippy | ✅ (19 s) | | tests: horizon-client, horizon-client-core, horizon-client-render | ✅ 2539 passed (10 min 59 s) | | doc tests | ✅ 0 passed (3 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 the commits of #5643 and #5644 until they merge. This one alone is 5 files, +1157 −2, almost all of it the four lang files. The `horizon-client-render` hang an earlier run saw is the GPU-test one described under Tests. - Parity: this was run on Windows, where the runner needs `fcntl` and can't start. The affected harnesses run in CI (`run-parity`). - Tests: run with `RUST_TEST_THREADS=2`. On this Windows machine, 4 or more `horizon-client-render` GPU tests at once hang (they pass alone and with 2 threads); the renderer is untouched here. Known, not changed here: Horizon's own pages build "Caption: value" with a fixed ": " (Extras, Graphics), so French shows "Pleine luminosité: Non" where vanilla's `options.generic_value` would give "Pleine luminosité : Non". ## Screenshots The shots were taken before the review's last fixes: uk's Extras caption still reads "Коліщатко: перенос" on `uk_ua/options-extras-2.png`, now "Перенос коліщатком". Retake that one, or leave it out. (attach from `.local/agent-i18n/<lang>/shots/`: `options-extras.png` and `title.png` for de_de, fr_fr, pl_pl, uk_ua; `options-graphics-hdr.png` for de_de and fr_fr; `friends.png` for de_de) 🤖 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:12 +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#6414
No description provided.