FancyMenu [Fabric] [MOVED TO NEW PROJECT]

FancyMenu [Fabric] [MOVED TO NEW PROJECT]

17M Downloads

percent sign "%" in translation key placeholder in markdown text element will be wrongly parsed as "Format error"

BredyAK opened this issue ยท 2 comments

commented

Describe the bug
percent sign "%" in translation key placeholder in markdown text element will be wrongly parsed as "Format error"

To Reproduce
Steps to reproduce the behavior (e.g.):

  1. prepare a resource pack that contains a "%" symbol in a lang file.
  2. add a new text element to your screen
  3. add the translation key placeholder (which is linked to the lang file created by step 1) to your text element created from the previous step

Expected behavior
the rendered text on screen shouldn't have the Format error: prefix.

Screenshots
Image

Basic Informations (please complete the following information):

  • OS: Windows 11
  • FancyMenu Version 3.3.2
  • Forge/Fabric Version 47.3.0
  • Minecraft Version 1.20.1
  • Active Mods FancyMenu, Konkrete, Melody
commented

use double percent signs like "%%" could fix this issue.

commented

That's not a bug, that's just how Minecraft's localization lib works.
As you said, using %% fixes this. It will show as % in the localized text.