[PR #5215] [CLOSED] Reconfigure screen: the Disconnect button translates menu.disconnect #6145

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/5215
Author: @iseaprojects
Created: 10/31/2026
Status: ❌ Closed

Base: main ← Head: fix/5204-reconfigure-disconnect-label


📝 Commits (1)

  • c2dc391 UI: the reconfigure screen's Disconnect button uses vanilla's key

📊 Changes

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

View changed files

📝 crates/horizon-client/src/game/remote.rs (+1 -1)

📄 Description

🤖 Opened by iseaprojects's AI agent (OpenCode, DeepSeek V4.1 Flash), not by iseaprojects personally.

What and why

Fixes #5204.

The reconfigure screen (ServerReconfigScreen, draw_reconfiguring) translated its Disconnect button from gui.disconnect. Vanilla 26.3's en_us.json has no such key, so the text renderer fell back to the key and the screen drew gui.disconnect under "Reconfiguring..." (the issue's screenshot). Vanilla's CommonComponents.GUI_DISCONNECT is menu.disconnect, which is Disconnect in the same file.

One line: the button now translates menu.disconnect. Every other Disconnect button in the game already uses it (code_of_conduct.rs, dialogs.rs, screens.rs, server_links.rs, server_packs.rs).

Kind

  • bug: a crash or a breakage

Vanilla reference

ServerReconfigScreen's Disconnect button (CommonComponents.GUI_DISCONNECT) uses menu.disconnect. Checked against the 26.3 files this repository prepares: en_us.json has menu.disconnect = Disconnect and connect.reconfiguring = Reconfiguring..., and has no gui.disconnect. No harness covers rendered UI text; the strings are the evidence.

I also scanned every Text::translate("...") literal in crates/ against that en_us.json: gui.disconnect was the only missing key used by a screen (test_instance_block.invalid_test is the other missing one and is not this screen).

Other projects' code

none

Self-check

**pr_ready** (`tools/pr_ready.py --quick` on DESKTOP-NACG3BC, against origin/main at 125875b84, 6 min 19 s)

| Check | Result |
| --- | --- |
| Scope | ✅ 1 files, +1 −1 |
| Cargo.lock | ✅ unchanged |
| Public tree | ✅ |
| Python tests | ❌ 495 run, FAILED (errors=1, skipped=2) (56 s) |
| rustfmt | ✅ (7 s) |
| clippy | ✅ (13 s) |
| tests: horizon-client | ✅ 1338 passed (4 min 57 s) |
| doc tests | ✅ 0 passed (3 s) |
| content root tests | ➖ content root untouched |
| tokens.css up to date | ➖ theme untouched |
| launcher rustfmt | ➖ launcher untouched |
| launcher clippy | ➖ launcher untouched |
| launcher tests | ➖ launcher untouched |
| Parity | ➖ not run (--quick): 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 Python failure is #5201 (Windows-only: pr_ready sets PYTHONUTF8=1 and perf_bench.windows_version decoded cmd /C ver's OEM output as UTF-8), fixed in #5210; this branch is based on origin/main before it.

Screenshots

Before: the screenshot in #5204, gui.disconnect under "Reconfiguring...". After: that button reads Disconnect, as menu.disconnect resolves in en_us.json. I could not take an in-game after shot here: the reconfigure screen needs a live server session, and this machine has no game install prepared for joining one.


🔄 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/5215 **Author:** [@iseaprojects](https://github.com/iseaprojects) **Created:** 10/31/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `fix/5204-reconfigure-disconnect-label` --- ### 📝 Commits (1) - [`c2dc391`](https://github.com/horizon-rust/horizon/commit/c2dc3914c180792b7851212a0927c860f8403217) UI: the reconfigure screen's Disconnect button uses vanilla's key ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game/remote.rs` (+1 -1) </details> ### 📄 Description > 🤖 Opened by iseaprojects's AI agent (OpenCode, DeepSeek V4.1 Flash), not by iseaprojects personally. ## What and why Fixes #5204. The reconfigure screen (`ServerReconfigScreen`, `draw_reconfiguring`) translated its Disconnect button from `gui.disconnect`. Vanilla 26.3's `en_us.json` has no such key, so the text renderer fell back to the key and the screen drew `gui.disconnect` under "Reconfiguring..." (the issue's screenshot). Vanilla's `CommonComponents.GUI_DISCONNECT` is `menu.disconnect`, which is `Disconnect` in the same file. One line: the button now translates `menu.disconnect`. Every other Disconnect button in the game already uses it (`code_of_conduct.rs`, `dialogs.rs`, `screens.rs`, `server_links.rs`, `server_packs.rs`). ## Kind - [x] bug: a crash or a breakage ## Vanilla reference `ServerReconfigScreen`'s Disconnect button (`CommonComponents.GUI_DISCONNECT`) uses `menu.disconnect`. Checked against the 26.3 files this repository prepares: `en_us.json` has `menu.disconnect` = `Disconnect` and `connect.reconfiguring` = `Reconfiguring...`, and has no `gui.disconnect`. No harness covers rendered UI text; the strings are the evidence. I also scanned every `Text::translate("...")` literal in `crates/` against that `en_us.json`: `gui.disconnect` was the only missing key used by a screen (`test_instance_block.invalid_test` is the other missing one and is not this screen). ## Other projects' code none ## Self-check ```text **pr_ready** (`tools/pr_ready.py --quick` on DESKTOP-NACG3BC, against origin/main at 125875b84, 6 min 19 s) | Check | Result | | --- | --- | | Scope | ✅ 1 files, +1 −1 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ❌ 495 run, FAILED (errors=1, skipped=2) (56 s) | | rustfmt | ✅ (7 s) | | clippy | ✅ (13 s) | | tests: horizon-client | ✅ 1338 passed (4 min 57 s) | | doc tests | ✅ 0 passed (3 s) | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ➖ launcher untouched | | launcher clippy | ➖ launcher untouched | | launcher tests | ➖ launcher untouched | | Parity | ➖ not run (--quick): 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 Python failure is #5201 (Windows-only: `pr_ready` sets `PYTHONUTF8=1` and `perf_bench.windows_version` decoded `cmd /C ver`'s OEM output as UTF-8), fixed in #5210; this branch is based on `origin/main` before it. ## Screenshots Before: the screenshot in #5204, `gui.disconnect` under "Reconfiguring...". After: that button reads `Disconnect`, as `menu.disconnect` resolves in `en_us.json`. I could not take an in-game after shot here: the reconfigure screen needs a live server session, and this machine has no game install prepared for joining one. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 06:14:54 +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#6145
No description provided.