[PR #4178] [MERGED] Launcher: the Settings and Home strings that never reached tr() #5463

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/4178
Author: @Domanffe
Created: 10/30/2026
Status: ✅ Merged
Merged: 11/1/2026
Merged by: @ludovic111

Base: main ← Head: feat/launcher-ru-strings


📝 Commits (10+)

  • 306f4c1 Launcher: the Settings and Home strings that never reached tr()
  • c3f26fd Launcher: no borrow clippy says is needless
  • 9acc6a9 Merge remote-tracking branch 'origin/main' into pr4178
  • 304457a Merge remote-tracking branch 'origin/main' into pr4178
  • b02bd35 Merge origin/main into pr4178
  • 846f2b7 Merge main into #4178 (home.rs: main's linked player counts, the playing label through trf)
  • 6ea61a5 Merge main into #4178
  • d6b5b84 Launcher: the strings this PR translates in ja and pt-br too
  • f86d564 Merge remote-tracking branch 'upstream/main' into ru-strings
  • c33d9a3 Merge main into #4178

📊 Changes

12 files changed (+172 additions, -33 deletions)

View changed files

📝 launcher/lang/de.json (+13 -1)
📝 launcher/lang/es.json (+13 -1)
📝 launcher/lang/fr.json (+13 -1)
📝 launcher/lang/ja.json (+13 -1)
📝 launcher/lang/pl.json (+13 -1)
📝 launcher/lang/pt-br.json (+13 -1)
📝 launcher/lang/ru.json (+13 -1)
📝 launcher/lang/tr.json (+13 -1)
📝 launcher/lang/uk.json (+13 -1)
📝 launcher/lang/zh.json (+13 -1)
📝 launcher/src/line_edit.rs (+1 -1)
📝 launcher/src/main.rs (+41 -22)

📄 Description

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

Settings and Home drew twenty-nine strings straight into the window, so tr() never saw them and no table ever had them: the rows for the game arguments and the HTTP proxy with both of their explanations, Manage versions, follows updates, VERSION, No version, Got it, Loading releases…, No releases yet., Couldn't load releases. {error}, No build for this platform, In use, Installed, the patch notes' empty and failed states, Launcher updated to {version}, the download percentage, Minecraft {version}, {count} playing now, {version} available, Signed in as {name}., Support the work below and the sponsors sentence. Each is a tr/trf call now.

Four more come for free from one place: line_edit::content draws every text field's placeholder, so the placeholder goes through the table there instead of at each field — For example --server-thread, For example http://127.0.0.1:7890, Paste an invite code and Search, then Enter.

Every table has the keys: Russian in ru.json, the English source in the other six, which is what an untranslated entry already looks like in this launcher (they show English, exactly as they did before).

Evidence: cargo test --lib i18n — all five table tests, including "every language has every string the code asks for", which is what catches a tr string missing from a table. The launcher was built and looked at on Windows (HORIZON_LAUNCHER_HOME on a throwaway folder, HORIZON_LAUNCHER_PAGE=settings, Russian): the Settings page shows Аргументы игры, Прокси, both explanations and both placeholders in Russian.

Not in this PR: the Servers, Mods, Packs, Worlds, Instances and Screenshots pages still draw their own sentences raw — hundreds of strings. They are the next slices, not this one.

This replaces the launcher half of #4173; the game half is #4177.


🔄 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/4178 **Author:** [@Domanffe](https://github.com/Domanffe) **Created:** 10/30/2026 **Status:** ✅ Merged **Merged:** 11/1/2026 **Merged by:** [@ludovic111](https://github.com/ludovic111) **Base:** `main` ← **Head:** `feat/launcher-ru-strings` --- ### 📝 Commits (10+) - [`306f4c1`](https://github.com/horizon-rust/horizon/commit/306f4c1444a62894f788a656c2ae6639940946df) Launcher: the Settings and Home strings that never reached tr() - [`c3f26fd`](https://github.com/horizon-rust/horizon/commit/c3f26fd45f4328b7825076e81049f30820e686c5) Launcher: no borrow clippy says is needless - [`9acc6a9`](https://github.com/horizon-rust/horizon/commit/9acc6a9b96a9a223ebdbdd90d0d7077241762312) Merge remote-tracking branch 'origin/main' into pr4178 - [`304457a`](https://github.com/horizon-rust/horizon/commit/304457a08460c6797f4c687c5ba3daea11128778) Merge remote-tracking branch 'origin/main' into pr4178 - [`b02bd35`](https://github.com/horizon-rust/horizon/commit/b02bd359c1e0f31f2f29d232fbed8afd6deffb48) Merge origin/main into pr4178 - [`846f2b7`](https://github.com/horizon-rust/horizon/commit/846f2b7c9e1434d45c137b1790e26877a231aa1a) Merge main into #4178 (home.rs: main's linked player counts, the playing label through trf) - [`6ea61a5`](https://github.com/horizon-rust/horizon/commit/6ea61a542ed07afdda6ca9173cdadb7360780491) Merge main into #4178 - [`d6b5b84`](https://github.com/horizon-rust/horizon/commit/d6b5b849761fcfbbaf8d3e0698062733fc333089) Launcher: the strings this PR translates in ja and pt-br too - [`f86d564`](https://github.com/horizon-rust/horizon/commit/f86d564821c36d7cfd2fc121fdfe6775063ef758) Merge remote-tracking branch 'upstream/main' into ru-strings - [`c33d9a3`](https://github.com/horizon-rust/horizon/commit/c33d9a3c3581d78861d0ee520e3494447b764318) Merge main into #4178 ### 📊 Changes **12 files changed** (+172 additions, -33 deletions) <details> <summary>View changed files</summary> 📝 `launcher/lang/de.json` (+13 -1) 📝 `launcher/lang/es.json` (+13 -1) 📝 `launcher/lang/fr.json` (+13 -1) 📝 `launcher/lang/ja.json` (+13 -1) 📝 `launcher/lang/pl.json` (+13 -1) 📝 `launcher/lang/pt-br.json` (+13 -1) 📝 `launcher/lang/ru.json` (+13 -1) 📝 `launcher/lang/tr.json` (+13 -1) 📝 `launcher/lang/uk.json` (+13 -1) 📝 `launcher/lang/zh.json` (+13 -1) 📝 `launcher/src/line_edit.rs` (+1 -1) 📝 `launcher/src/main.rs` (+41 -22) </details> ### 📄 Description > 🤖 Opened by Alexander's AI agent (Hermes), not by Alexander himself. Settings and Home drew twenty-nine strings straight into the window, so `tr()` never saw them and no table ever had them: the rows for the game arguments and the HTTP proxy with both of their explanations, `Manage versions`, `follows updates`, `VERSION`, `No version`, `Got it`, `Loading releases…`, `No releases yet.`, `Couldn't load releases. {error}`, `No build for this platform`, `In use`, `Installed`, the patch notes' empty and failed states, `Launcher updated to {version}`, the download percentage, `Minecraft {version}`, `{count} playing now`, `{version} available`, `Signed in as {name}.`, `Support the work below` and the sponsors sentence. Each is a `tr`/`trf` call now. Four more come for free from one place: `line_edit::content` draws every text field's placeholder, so the placeholder goes through the table there instead of at each field — `For example --server-thread`, `For example http://127.0.0.1:7890`, `Paste an invite code` and `Search, then Enter`. Every table has the keys: Russian in `ru.json`, the English source in the other six, which is what an untranslated entry already looks like in this launcher (they show English, exactly as they did before). Evidence: `cargo test --lib i18n` — all five table tests, including "every language has every string the code asks for", which is what catches a `tr` string missing from a table. The launcher was built and looked at on Windows (`HORIZON_LAUNCHER_HOME` on a throwaway folder, `HORIZON_LAUNCHER_PAGE=settings`, Russian): the Settings page shows Аргументы игры, Прокси, both explanations and both placeholders in Russian. Not in this PR: the Servers, Mods, Packs, Worlds, Instances and Screenshots pages still draw their own sentences raw — hundreds of strings. They are the next slices, not this one. This replaces the launcher half of #4173; the game half is #4177. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:12:45 +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#5463
No description provided.