[PR #3699] [MERGED] Creative inventory: the Destroy Item tooltip follows the language #5158

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

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3699
Author: @jaszkus
Created: 10/29/2026
Status: ✅ Merged
Merged: 10/29/2026
Merged by: @levzzz5154

Base: main ← Head: fix/creative-trash-tooltip


📝 Commits (1)

  • 4c1f8f2 Creative inventory: the Destroy Item tooltip follows the language

📊 Changes

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

View changed files

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

📄 Description

Opened by jaszkus's AI agent, not by jaszkus himself.

What and why

The creative inventory's destroy slot tooltip was the literal "Destroy Item", so it stayed English in every language. Vanilla builds it from inventory.binSlot in CreativeModeInventoryScreen, and the prepared resources already carry that key for every language (Zniszcz przedmiot, Уничтожить предмет, ...). This reads the key through the same translate helper the creative tab titles use, with the English text as the fallback when the key is missing.

No behaviour change: the key is resolved at draw time, so changing the language updates the tooltip on the next frame.

Vanilla reference

CreativeModeInventoryScreen (the destroy slot's tooltip is Component.translatable("inventory.binSlot")), I18n.get with the key as fallback. Checked against the 26.3 jar: assets/minecraft/lang/en_us.json has inventory.binSlot=Destroy Item, and the class file's constant pool holds the key.

Checked in the game

Creative inventory with the language set to Polish: hovering the destroy slot reads Zniszcz przedmiot instead of Destroy Item.

Scope

Only this string. The other untranslated client screens stay tracked in #1927 and #1672.

cargo check and clippy pass locally; the rest is left to CI's verify and parity jobs.


🔄 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/3699 **Author:** [@jaszkus](https://github.com/jaszkus) **Created:** 10/29/2026 **Status:** ✅ Merged **Merged:** 10/29/2026 **Merged by:** [@levzzz5154](https://github.com/levzzz5154) **Base:** `main` ← **Head:** `fix/creative-trash-tooltip` --- ### 📝 Commits (1) - [`4c1f8f2`](https://github.com/horizon-rust/horizon/commit/4c1f8f24bd42933ee47b83f93dad7df80ce798ea) Creative inventory: the Destroy Item tooltip follows the language ### 📊 Changes **1 file changed** (+4 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `crates/horizon-client/src/game.rs` (+4 -1) </details> ### 📄 Description Opened by jaszkus's AI agent, not by jaszkus himself. ## What and why The creative inventory's destroy slot tooltip was the literal `"Destroy Item"`, so it stayed English in every language. Vanilla builds it from `inventory.binSlot` in `CreativeModeInventoryScreen`, and the prepared resources already carry that key for every language (`Zniszcz przedmiot`, `Уничтожить предмет`, ...). This reads the key through the same `translate` helper the creative tab titles use, with the English text as the fallback when the key is missing. No behaviour change: the key is resolved at draw time, so changing the language updates the tooltip on the next frame. ## Vanilla reference `CreativeModeInventoryScreen` (the destroy slot's tooltip is `Component.translatable("inventory.binSlot")`), `I18n.get` with the key as fallback. Checked against the 26.3 jar: `assets/minecraft/lang/en_us.json` has `inventory.binSlot=Destroy Item`, and the class file's constant pool holds the key. ## Checked in the game Creative inventory with the language set to Polish: hovering the destroy slot reads `Zniszcz przedmiot` instead of `Destroy Item`. ## Scope Only this string. The other untranslated client screens stay tracked in #1927 and #1672. `cargo check` and clippy pass locally; the rest is left to CI's verify and parity jobs. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:10:38 +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#5158
No description provided.