[PR #3896] [CLOSED] feat(launcher): fix sponsor chip overflow and add missing ui translations #5276

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3896
Author: @josegil1909
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: feat/launcher-i18n-expansion


📝 Commits (3)

  • 38f4809 feat(launcher): fix sponsor chip overflow and add missing ui translations
  • 4b276e9 fix(launcher): prevent pack-kind tabs from overflowing at 960px
  • b661a59 feat(launcher): expand ui i18n coverage across all views and dialogs

📊 Changes

14 files changed (+931 additions, -104 deletions)

View changed files

📝 launcher/lang/de.json (+137 -2)
📝 launcher/lang/es.json (+137 -2)
📝 launcher/lang/fr.json (+136 -1)
📝 launcher/lang/ru.json (+136 -1)
📝 launcher/lang/uk.json (+136 -1)
📝 launcher/lang/zh.json (+136 -1)
📝 launcher/src/blocks.rs (+6 -2)
📝 launcher/src/instances_page.rs (+11 -8)
📝 launcher/src/internet.rs (+9 -10)
📝 launcher/src/main.rs (+4 -4)
📝 launcher/src/modpacks_page.rs (+27 -21)
📝 launcher/src/mods_page.rs (+6 -10)
📝 launcher/src/mods_project.rs (+2 -2)
📝 launcher/src/servers_page.rs (+48 -39)

📄 Description

What and why

  • Fixes the Sculk sponsor promo chip overflow in Spanish (launcher/lang/es.json) by shortening "15% off" from "15% de descuento" to "-15 %" (matching fr.json), preventing the chip from overflowing the 228px card in partner.rs.
  • Expands translations across all 6 supported languages (de, es, fr, ru, uk, zh) for UI strings that pass through button(), segments(), section_title(), page_header(), and tab headers:
    • Modpack filters and status: All, Ported, Partial, Not yet, Not needed
    • Pack kinds: Modpacks, Resource packs, Shader packs, Data packs
    • Section titles: Worlds, Multiplayer, Packs, Screenshots, Console, Developer options, Your modpacks, Browse modpacks
    • Server actions & tabs: Start, Stop, Overview, Players, Backups
    • Mod project tabs: Description, Gallery
    • Page header descriptions: Builds from GitHub. Each one installs into its own folder., What changed in each release, newest first.
    • Sponsor section: Support the work below, Sponsor on GitHub
  • Wraps Support the work below and blocks::tabs labels in tr() so they are translated at run time.

Vanilla reference

none

Self-check

pr_ready (tools/pr_ready.py --quick --base upstream/main on Phantom, against upstream/main at 668419b92, 40 s)

Check Result
Scope ✅ 8 files, +177 −9
Cargo.lock ✅ unchanged
Public tree ✅
Python tests ✅ 423 passed (35 s)
rustfmt ➖ no Rust change
clippy ➖ no Rust change
tests ➖ no crate touched
doc tests ➖ no crate touched
content root tests ➖ content root untouched
tokens.css up to date ➖ theme untouched
launcher rustfmt ✅ (1 s)
launcher clippy ✅
launcher tests ✅ 275 passed (4 s)
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)

🔄 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/3896 **Author:** [@josegil1909](https://github.com/josegil1909) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/launcher-i18n-expansion` --- ### 📝 Commits (3) - [`38f4809`](https://github.com/horizon-rust/horizon/commit/38f480955fd4330e336666ab1c83088e956cdb63) feat(launcher): fix sponsor chip overflow and add missing ui translations - [`4b276e9`](https://github.com/horizon-rust/horizon/commit/4b276e951e57186d33a58fb94f71e8cad7948023) fix(launcher): prevent pack-kind tabs from overflowing at 960px - [`b661a59`](https://github.com/horizon-rust/horizon/commit/b661a59cfb772fc0cf3d4e30a6484daa5e2a5ca2) feat(launcher): expand ui i18n coverage across all views and dialogs ### 📊 Changes **14 files changed** (+931 additions, -104 deletions) <details> <summary>View changed files</summary> 📝 `launcher/lang/de.json` (+137 -2) 📝 `launcher/lang/es.json` (+137 -2) 📝 `launcher/lang/fr.json` (+136 -1) 📝 `launcher/lang/ru.json` (+136 -1) 📝 `launcher/lang/uk.json` (+136 -1) 📝 `launcher/lang/zh.json` (+136 -1) 📝 `launcher/src/blocks.rs` (+6 -2) 📝 `launcher/src/instances_page.rs` (+11 -8) 📝 `launcher/src/internet.rs` (+9 -10) 📝 `launcher/src/main.rs` (+4 -4) 📝 `launcher/src/modpacks_page.rs` (+27 -21) 📝 `launcher/src/mods_page.rs` (+6 -10) 📝 `launcher/src/mods_project.rs` (+2 -2) 📝 `launcher/src/servers_page.rs` (+48 -39) </details> ### 📄 Description ## What and why - Fixes the Sculk sponsor promo chip overflow in Spanish (`launcher/lang/es.json`) by shortening `"15% off"` from `"15% de descuento"` to `"-15 %"` (matching `fr.json`), preventing the chip from overflowing the 228px card in `partner.rs`. - Expands translations across all 6 supported languages (`de`, `es`, `fr`, `ru`, `uk`, `zh`) for UI strings that pass through `button()`, `segments()`, `section_title()`, `page_header()`, and tab headers: - Modpack filters and status: `All`, `Ported`, `Partial`, `Not yet`, `Not needed` - Pack kinds: `Modpacks`, `Resource packs`, `Shader packs`, `Data packs` - Section titles: `Worlds`, `Multiplayer`, `Packs`, `Screenshots`, `Console`, `Developer options`, `Your modpacks`, `Browse modpacks` - Server actions & tabs: `Start`, `Stop`, `Overview`, `Players`, `Backups` - Mod project tabs: `Description`, `Gallery` - Page header descriptions: `Builds from GitHub. Each one installs into its own folder.`, `What changed in each release, newest first.` - Sponsor section: `Support the work below`, `Sponsor on GitHub` - Wraps `Support the work below` and `blocks::tabs` labels in `tr()` so they are translated at run time. ## Vanilla reference none ## Self-check **pr_ready** (`tools/pr_ready.py --quick --base upstream/main` on Phantom, against upstream/main at 668419b92, 40 s) | Check | Result | | --- | --- | | Scope | ✅ 8 files, +177 −9 | | Cargo.lock | ✅ unchanged | | Public tree | ✅ | | Python tests | ✅ 423 passed (35 s) | | rustfmt | ➖ no Rust change | | clippy | ➖ no Rust change | | tests | ➖ no crate touched | | doc tests | ➖ no crate touched | | content root tests | ➖ content root untouched | | tokens.css up to date | ➖ theme untouched | | launcher rustfmt | ✅ (1 s) | | launcher clippy | ✅ | | launcher tests | ✅ 275 passed (4 s) | | 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) | --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:27 +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#5276
No description provided.