[PR #2069] [CLOSED] Localization: server screens and the new world name follow the language #3978

Closed
opened 2026-11-03 04:13:44 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2069
Author: @kohad1ck
Created: 10/26/2026
Status: ❌ Closed

Base: main ← Head: fix/localize-server-screens


📝 Commits (1)

  • d081638 Localization: server screens and the new world name follow the language

📊 Changes

2 files changed (+23 additions, -17 deletions)

View changed files

📝 crates/horizon-client/src/multiplayer.rs (+14 -14)
📝 crates/horizon-client/src/title.rs (+9 -3)

📄 Description

🤖 Opened by kohad1ck's AI agent (ZCode), not by kohad1ck personally.

What and why

The Multiplayer server screens and Create New World still built some text from English literals, so with a non-English language selected they stayed English:

  • Add Server: the default server name, screen title, field labels and Done/Cancel buttons.
  • Edit Server Info: the screen title and field labels.
  • Direct Connection: the address label used addServer.enterIp, a key that 26.3 no longer has, and the Join/Cancel buttons were literals.
  • Create New World: the name started with "New World" instead of selectWorld.newWorld.
  • Select World: its title and an unknown world version were literals.
  • Disconnected screen / Friends form: "Connection Lost", "Back to Server List" and Cancel were literals.

They now go through lang::get_or with vanilla's own keys, so every language in the prepared resources gets its translation, and a language whose file lacks a key keeps the English fallback. en_us is unchanged.

Vanilla reference

26.3 client bytecode: ManageServerScreen (manageServer.enterName, manageServer.enterIp, selectServer.defaultName), DirectJoinServerScreen (manageServer.enterIp, selectServer.select), JoinMultiplayerScreen (manageServer.add.title, manageServer.edit.title), WorldCreationUiState (selectWorld.newWorld), DisconnectedScreen (disconnect.lost, gui.toMenu). UI text only; no harness.

Self-check

pr_ready (tools/pr_ready.py --base upstream/main on DESKTOP-3050AHP, against upstream/main at 45bc45b39, 2 min 48 s)

Check Result
Scope ✅ 2 files, +23 −17
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ➖ no Python change
rustfmt ✅ (12 s)
clippy ✅ (1 min 2 s)
tests: horizon-client ❌ 1141 passed, 2 failed (1 min 26 s)
doc tests ✅ 0 passed (4 s)
tokens.css up to date ➖ theme untouched
launcher rustfmt ➖ launcher untouched
launcher clippy ➖ launcher untouched
launcher tests ➖ launcher untouched
Parity ➖ not run (no vanilla data here): 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 two failing tests reproduce on clean upstream/main on this Windows machine: save::tests::session_lock_is_exclusive (the OS reports the file locked by another process) and crash::tests::stacks_start_at_the_panicking_frame (backtrace paths use /src/crash.rs here instead of crates/horizon-client/src/crash.rs). They are unrelated to this change.

Screenshots

Not captured: these labels come straight from the prepared language files, and the checks above cover the code.

🤖 Generated with ZCode


🔄 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/2069 **Author:** [@kohad1ck](https://github.com/kohad1ck) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/localize-server-screens` --- ### 📝 Commits (1) - [`d081638`](https://github.com/horizon-rust/horizon/commit/d0816386edb07a6865e91d424f2df3b8677e8a55) Localization: server screens and the new world name follow the language ### 📊 Changes **2 files changed** (+23 additions, -17 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/multiplayer.rs` (+14 -14) 📝 `crates/horizon-client/src/title.rs` (+9 -3) </details> ### 📄 Description > 🤖 Opened by kohad1ck's AI agent (ZCode), not by kohad1ck personally. ## What and why The Multiplayer server screens and Create New World still built some text from English literals, so with a non-English language selected they stayed English: - **Add Server**: the default server name, screen title, field labels and Done/Cancel buttons. - **Edit Server Info**: the screen title and field labels. - **Direct Connection**: the address label used `addServer.enterIp`, a key that 26.3 no longer has, and the Join/Cancel buttons were literals. - **Create New World**: the name started with "New World" instead of `selectWorld.newWorld`. - **Select World**: its title and an unknown world version were literals. - **Disconnected screen / Friends form**: "Connection Lost", "Back to Server List" and Cancel were literals. They now go through `lang::get_or` with vanilla's own keys, so every language in the prepared resources gets its translation, and a language whose file lacks a key keeps the English fallback. `en_us` is unchanged. ## Vanilla reference 26.3 client bytecode: `ManageServerScreen` (`manageServer.enterName`, `manageServer.enterIp`, `selectServer.defaultName`), `DirectJoinServerScreen` (`manageServer.enterIp`, `selectServer.select`), `JoinMultiplayerScreen` (`manageServer.add.title`, `manageServer.edit.title`), `WorldCreationUiState` (`selectWorld.newWorld`), `DisconnectedScreen` (`disconnect.lost`, `gui.toMenu`). UI text only; no harness. ## Self-check **pr_ready** (`tools/pr_ready.py --base upstream/main` on DESKTOP-3050AHP, against upstream/main at 45bc45b39, 2 min 48 s) | Check | Result | | --- | --- | | Scope | ✅ 2 files, +23 −17 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ➖ no Python change | | rustfmt | ✅ (12 s) | | clippy | ✅ (1 min 2 s) | | tests: horizon-client | ❌ 1141 passed, 2 failed (1 min 26 s) | | doc tests | ✅ 0 passed (4 s) | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (no vanilla data here): 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 two failing tests reproduce on clean `upstream/main` on this Windows machine: `save::tests::session_lock_is_exclusive` (the OS reports the file locked by another process) and `crash::tests::stacks_start_at_the_panicking_frame` (backtrace paths use `/src/crash.rs` here instead of `crates/horizon-client/src/crash.rs`). They are unrelated to this change. ## Screenshots Not captured: these labels come straight from the prepared language files, and the checks above cover the code. 🤖 Generated with ZCode --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:13:44 +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#3978
No description provided.