[PR #2574] [CLOSED] Options: Horizon's own captions read the bundled language #4438

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

📋 Pull Request Information

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

Base: main ← Head: i18n/own-screens-remainder


📝 Commits (2)

  • abdaf71 Options: Horizon's own captions read the bundled language
  • 80c8b37 Merge remote-tracking branch 'origin/main' into i18n/own-screens-remainder

📊 Changes

5 files changed (+200 additions, -93 deletions)

View changed files

📝 crates/horizon-client-core/src/lang.rs (+7 -0)
📝 crates/horizon-client/assets/horizon/lang/en_us.json (+53 -1)
📝 crates/horizon-client/assets/horizon/lang/ru_ru.json (+53 -1)
📝 crates/horizon-client/src/multiplayer.rs (+13 -5)
📝 crates/horizon-client/src/options_ui.rs (+74 -86)

📄 Description

🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself.

Refs #1672. This is the remaining half of it; #1673, #1682, #1806, #2118 and #1926 already took the vanilla-mapped screens.

The strings Horizon writes itself had no keys at all, so the options pages, the mod and shader pack lists, the agent page and the multiplayer friend screens stayed English in every language. This adds 52 horizon.* keys to the bundled namespace in assets/horizon/lang, in en_us and ru_ru, and points the call sites at them:

  • options_ui.rs: the page titles and the ... buttons that open them, the page tooltips, the controller value labels (lightbar, button glyphs, menu navigation, on-screen keyboard), Chat Delay, the settings search placeholder, the unavailable-feature tooltip, and the mod and shader pack lists (empty state, Stopped/Dev/Horizon suffixes, Settings, Open Mod Folder).
  • multiplayer.rs: Join a Friend, Invite Code, Relay, Join and Cancel Reconnecting. The rest of that file already went through lang::get_or.

Two strings borrow vanilla keys where vanilla has the same word: Open Pack Folder is pack.openFolder, and the lightbar's Off is options.off. Settings for a mod's own page, and the lightbar's Health and Dimension, have no vanilla equivalent and get horizon keys.

lang::tests::bundled_horizon_strings_follow_the_language now checks that every bundled key has both an English and a Russian value, and pins the new Mods page title in both.

Not translated here: mod titles, shader pack names, and the Extras page captions, which come from the mod and extras files themselves.

The pr_ready --quick block follows as a comment.


🔄 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/2574 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/26/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `i18n/own-screens-remainder` --- ### 📝 Commits (2) - [`abdaf71`](https://github.com/horizon-rust/horizon/commit/abdaf71ecdc7da00635faa446afc8eeb38bd0f7a) Options: Horizon's own captions read the bundled language - [`80c8b37`](https://github.com/horizon-rust/horizon/commit/80c8b37e17fc05b67326db3e34c88d1f9130c42b) Merge remote-tracking branch 'origin/main' into i18n/own-screens-remainder ### 📊 Changes **5 files changed** (+200 additions, -93 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client-core/src/lang.rs` (+7 -0) 📝 `crates/horizon-client/assets/horizon/lang/en_us.json` (+53 -1) 📝 `crates/horizon-client/assets/horizon/lang/ru_ru.json` (+53 -1) 📝 `crates/horizon-client/src/multiplayer.rs` (+13 -5) 📝 `crates/horizon-client/src/options_ui.rs` (+74 -86) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Refs #1672. This is the remaining half of it; #1673, #1682, #1806, #2118 and #1926 already took the vanilla-mapped screens. The strings Horizon writes itself had no keys at all, so the options pages, the mod and shader pack lists, the agent page and the multiplayer friend screens stayed English in every language. This adds 52 `horizon.*` keys to the bundled namespace in `assets/horizon/lang`, in `en_us` and `ru_ru`, and points the call sites at them: - `options_ui.rs`: the page titles and the `...` buttons that open them, the page tooltips, the controller value labels (lightbar, button glyphs, menu navigation, on-screen keyboard), Chat Delay, the settings search placeholder, the unavailable-feature tooltip, and the mod and shader pack lists (empty state, `Stopped`/`Dev`/`Horizon` suffixes, Settings, Open Mod Folder). - `multiplayer.rs`: Join a Friend, Invite Code, Relay, Join and Cancel Reconnecting. The rest of that file already went through `lang::get_or`. Two strings borrow vanilla keys where vanilla has the same word: Open Pack Folder is `pack.openFolder`, and the lightbar's Off is `options.off`. Settings for a mod's own page, and the lightbar's Health and Dimension, have no vanilla equivalent and get horizon keys. `lang::tests::bundled_horizon_strings_follow_the_language` now checks that every bundled key has both an English and a Russian value, and pins the new Mods page title in both. Not translated here: mod titles, shader pack names, and the Extras page captions, which come from the mod and extras files themselves. The `pr_ready --quick` block follows as a comment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 04:17:09 +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#4438
No description provided.