[PR #1673] [MERGED] Title: the main menu labels follow the game language #3678

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/1673
Author: @Domanffe
Created: 10/24/2026
Status: ✅ Merged
Merged: 10/25/2026
Merged by: @ludovic111

Base: main ← Head: fix/title-menu-labels


📝 Commits (2)

  • f500be1 Title: the main menu labels follow the game language (#1672)
  • 53e1191 Title: the Friends icon reads vanilla's gui.friends.open

📊 Changes

1 file changed (+60 additions, -19 deletions)

View changed files

📝 crates/horizon-client/src/title.rs (+60 -19)

📄 Description

🤖 Agent

The title screen builds its labels from literals, so the buttons stay English in every language even though the world select screen next to them is translated: Buttons::buttons, Mode::Main, plus the three icon tooltips and the world list's "Play Selected World", "Create New World" and "Back".

Every one of those has a vanilla key that the prepared resources already carry (menu.singleplayer, menu.multiplayer, menu.online, menu.options, menu.quit, selectWorld.select, selectWorld.create, gui.back, options.language, options.accessibility), so the labels go through lang::get_or like the rest of this file already does, with the English text as the fallback when no resources are loaded. The exception is "Friends", which is Horizon's own text and has no vanilla key, so it reads horizon.menu.friends and falls back to "Friends" until that namespace exists (issue #1672 tracks it).

The icon row loses its per-entry enabled and icon size columns because all three were true and 15.0; nothing else changes there.

cargo test -p horizon-client --lib title:: is 29 passed, and those tests click "Singleplayer" and "Multiplayer" by label, which is the fallback path working. What is not verified here is the translated rendering: that needs a client built with this branch and the client language set to Russian, which I have not run yet, since the string comes from the same Language::load the game screens already use.


🔄 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/1673 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/24/2026 **Status:** ✅ Merged **Merged:** 10/25/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `fix/title-menu-labels` --- ### 📝 Commits (2) - [`f500be1`](https://github.com/horizon-rust/horizon/commit/f500be1b5ed8933af93610c90780fe97d25b8701) Title: the main menu labels follow the game language (#1672) - [`53e1191`](https://github.com/horizon-rust/horizon/commit/53e1191480d8a96e54c5d86af30357559144938f) Title: the Friends icon reads vanilla's gui.friends.open ### 📊 Changes **1 file changed** (+60 additions, -19 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/title.rs` (+60 -19) </details> ### 📄 Description 🤖 Agent The title screen builds its labels from literals, so the buttons stay English in every language even though the world select screen next to them is translated: `Buttons::buttons`, `Mode::Main`, plus the three icon tooltips and the world list's "Play Selected World", "Create New World" and "Back". Every one of those has a vanilla key that the prepared resources already carry (`menu.singleplayer`, `menu.multiplayer`, `menu.online`, `menu.options`, `menu.quit`, `selectWorld.select`, `selectWorld.create`, `gui.back`, `options.language`, `options.accessibility`), so the labels go through `lang::get_or` like the rest of this file already does, with the English text as the fallback when no resources are loaded. The exception is "Friends", which is Horizon's own text and has no vanilla key, so it reads `horizon.menu.friends` and falls back to "Friends" until that namespace exists (issue #1672 tracks it). The icon row loses its per-entry `enabled` and icon size columns because all three were `true` and `15.0`; nothing else changes there. `cargo test -p horizon-client --lib title::` is 29 passed, and those tests click `"Singleplayer"` and `"Multiplayer"` by label, which is the fallback path working. What is not verified here is the translated rendering: that needs a client built with this branch and the client language set to Russian, which I have not run yet, since the string comes from the same `Language::load` the game screens already use. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:11:21 +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#3678
No description provided.