[PR #2118] [MERGED] Localization: server screens and the new world name follow the language #4021

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/2118
Author: @ludovic111
Created: 10/26/2026
Status: ✅ Merged
Merged: 10/26/2026
Merged by: @ludovic111

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


📝 Commits (1)

  • b279758 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 Ludovic's AI agent (Claude), not by Ludovic himself.

Re-opened from #2069 by kohad1ck, whose account no longer exists; their commits are kept as is.

What and why

Some text on the Multiplayer server screens and Create New World was built from English literals, so it stayed English whatever language was selected. It now goes through lang::get_or with vanilla's own keys, and the English fallback stays for a language file that lacks a key:

  • Add Server / Edit Server Info: titles (manageServer.add.title, manageServer.edit.title), field labels (manageServer.enterName, manageServer.enterIp), the default name (selectServer.defaultName), Done/Cancel (gui.done, gui.cancel).
  • Direct Connection: the address label now uses manageServer.enterIp, as DirectJoinServerScreen does, instead of addServer.enterIp. Join Server is selectServer.select.
  • Disconnected: disconnect.lost, and gui.toMenu ("Back to Server List").
  • Select World: the title (selectWorld.title) and an unknown version (selectWorld.versionUnknown, which reads "unknown" in en_us, as in vanilla).
  • Create New World: the default name selectWorld.newWorld (WorldCreationUiState.DEFAULT_WORLD_NAME).

Every key was checked against the 26.3 sources (ManageServerScreen, DirectJoinServerScreen, DisconnectedScreen, LevelSummary, WorldCreationUiState) and 26.3's en_us.json.

How tested

Gate integration tree (main + this change + the night's other contributor PRs): cargo fmt --check, cargo clippy -p horizon-client --all-targets -D warnings, cargo test -p horizon-client --lib --bins --tests 1306 passed. These are UI strings with no harness.

🤖 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/2118 **Author:** [@ludovic111](https://github.com/ludovic111) **Created:** 10/26/2026 **Status:** ✅ Merged **Merged:** 10/26/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/localize-server-screens` --- ### 📝 Commits (1) - [`b279758`](https://github.com/horizon-rust/horizon/commit/b279758c7c75447f74aac2466aa6d0ba1b758d82) 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 Ludovic's AI agent (Claude), not by Ludovic himself. Re-opened from #2069 by kohad1ck, whose account no longer exists; their commits are kept as is. ## What and why Some text on the Multiplayer server screens and Create New World was built from English literals, so it stayed English whatever language was selected. It now goes through `lang::get_or` with vanilla's own keys, and the English fallback stays for a language file that lacks a key: - Add Server / Edit Server Info: titles (`manageServer.add.title`, `manageServer.edit.title`), field labels (`manageServer.enterName`, `manageServer.enterIp`), the default name (`selectServer.defaultName`), Done/Cancel (`gui.done`, `gui.cancel`). - Direct Connection: the address label now uses `manageServer.enterIp`, as `DirectJoinServerScreen` does, instead of `addServer.enterIp`. Join Server is `selectServer.select`. - Disconnected: `disconnect.lost`, and `gui.toMenu` ("Back to Server List"). - Select World: the title (`selectWorld.title`) and an unknown version (`selectWorld.versionUnknown`, which reads "unknown" in en_us, as in vanilla). - Create New World: the default name `selectWorld.newWorld` (`WorldCreationUiState.DEFAULT_WORLD_NAME`). Every key was checked against the 26.3 sources (`ManageServerScreen`, `DirectJoinServerScreen`, `DisconnectedScreen`, `LevelSummary`, `WorldCreationUiState`) and 26.3's en_us.json. ## How tested Gate integration tree (main + this change + the night's other contributor PRs): `cargo fmt --check`, `cargo clippy -p horizon-client --all-targets -D warnings`, `cargo test -p horizon-client --lib --bins --tests` 1306 passed. These are UI strings with no harness. 🤖 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 04:14:05 +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#4021
No description provided.