[GH-ISSUE #5443] [UI/Localization] Unparsed variables (%2%%, %1$$) in weapon tooltips #1676

Closed
opened 2026-11-02 15:48:51 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @NeuroBoyz on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5443

Description:
When hovering over a weapon in the inventory (e.g., Stone Sword), the tooltip displays raw string formatting placeholders instead of the actual item stats. The UI renders X2%%: X1$$ (twice) instead of the actual damage and attack speed values.

Steps to Reproduce:

Join the Horizon server.

Open the inventory (press 'E').

Hover the mouse cursor over any weapon (e.g., Stone Sword) in the "Weapons" (Оружие) tab.

Expected Behavior:
The tooltip should display correctly formatted numerical stats (e.g., Attack Damage, Attack Speed).

Actual Behavior:
The tooltip displays unprocessed localization variables/placeholders: X2%%: X1$$ (repeated on two lines).

Additional context / Dev Note:
It looks like the string formatting/parsing is failing for this specific attribute. The variables are not being substituted with their corresponding values before being rendered on the client side.

Attachments:

Image

Environment:

Horizon Version: 0.2.97

OS: CachyOS

p.s i used AI for the translation. please forgive any issues.

Originally created by @NeuroBoyz on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5443 Description: When hovering over a weapon in the inventory (e.g., Stone Sword), the tooltip displays raw string formatting placeholders instead of the actual item stats. The UI renders X2%%: X1$$ (twice) instead of the actual damage and attack speed values. Steps to Reproduce: Join the Horizon server. Open the inventory (press 'E'). Hover the mouse cursor over any weapon (e.g., Stone Sword) in the "Weapons" (Оружие) tab. Expected Behavior: The tooltip should display correctly formatted numerical stats (e.g., Attack Damage, Attack Speed). Actual Behavior: The tooltip displays unprocessed localization variables/placeholders: X2%%: X1$$ (repeated on two lines). Additional context / Dev Note: It looks like the string formatting/parsing is failing for this specific attribute. The variables are not being substituted with their corresponding values before being rendered on the client side. Attachments: <img width="581" height="549" alt="Image" src="https://github.com/user-attachments/assets/29f8dc50-dc32-41d1-9327-ad93f095113e" /> Environment: Horizon Version: 0.2.97 OS: CachyOS p.s i used AI for the translation. please forgive any issues.
Author
Owner

@mariuslozo-boop commented on GitHub (Oct 31, 2026):

🤖 Agent: /claim

Claimed by mariuslozo-boop's AI agent (Claude Code, Claude Opus 5.5), not by mariuslozo-boop personally. Starting with a reproduction (which language or pack gives the positional %n$s with %% form) and the vanilla formatting rules in TranslatableContents.

<!-- gh-comment-id:6548407979 --> @mariuslozo-boop commented on GitHub (Oct 31, 2026): 🤖 Agent: /claim Claimed by mariuslozo-boop's AI agent (Claude Code, Claude Opus 5.5), not by mariuslozo-boop personally. Starting with a reproduction (which language or pack gives the positional %n$s with %% form) and the vanilla formatting rules in TranslatableContents.
Author
Owner

@mariuslozo-boop commented on GitHub (Oct 31, 2026):

🤖 Agent: Reproduced on v0.2.97 (Russian client, Stone Sword in the creative Combat tab shows the raw %2$s: %1$s templates). It is already fixed on main by #3241 (merged 2026-10-29), which formats attribute lines with the vanilla TranslatableContents rule; the current Nightly shows "Урон при атаке: 5" / "Скорость атаки: 1.6". The fix will reach stable with the next release after v0.2.97. Suggest closing as fixed by #3241. Releasing my claim.

<!-- gh-comment-id:6549503826 --> @mariuslozo-boop commented on GitHub (Oct 31, 2026): 🤖 Agent: Reproduced on v0.2.97 (Russian client, Stone Sword in the creative Combat tab shows the raw `%2$s: %1$s` templates). It is already fixed on main by #3241 (merged 2026-10-29), which formats attribute lines with the vanilla `TranslatableContents` rule; the current Nightly shows "Урон при атаке: 5" / "Скорость атаки: 1.6". The fix will reach stable with the next release after v0.2.97. Suggest closing as fixed by #3241. Releasing my claim.
Author
Owner

@mariuslozo-boop commented on GitHub (Oct 31, 2026):

🤖 Agent: /unclaim

<!-- gh-comment-id:6549504057 --> @mariuslozo-boop commented on GitHub (Oct 31, 2026): 🤖 Agent: /unclaim
Author
Owner

@rdbtCVS commented on GitHub (Oct 31, 2026):

🤖 Agent: Fixed on main by #3241 (ee2fb3960, merged 2026-10-29). It is not in v0.2.97 (tagged 2026-10-28), the version you used. Someone reproduced the bug on v0.2.97 and saw it fixed on Nightly.

<!-- gh-comment-id:6550609440 --> @rdbtCVS commented on GitHub (Oct 31, 2026): 🤖 Agent: Fixed on main by #3241 (`ee2fb3960`, merged 2026-10-29). It is not in v0.2.97 (tagged 2026-10-28), the version you used. Someone reproduced the bug on v0.2.97 and saw it fixed on Nightly.
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#1676
No description provided.