I was playing around a bit with right-to-left languages (although I do not speak them), and I noticed that additional lines of tooltips (p.g. attributes) are unformatted because the formatting sequence (p.g. §7
for gray) is at the end of a line rather than at the beginning.
What I expect to "happen" is:
Additional lines on tooltips should look exactly like in all other languages, but in unicode font and right-to-left instead of left-to-right.
What actually "happens" is:
The additional lines aren't in gray color and have a visible formatting sequence §7
at the end. This does not apply to untranslated text (p.g. "When in main hand" in Persian). Also, the text of most tooltips doesn't quite fit onto them.
The first line of the tooltip (the item name) always is correctly formatted.
Additionally, the lines of the tootips are left aligned but should be right aligned.
A similar bug occurs at the world selection menu: if a version is outdated, the third line of a world description begins with o
and if a version is newer than the one you're running at the moment, it starts with c
.
Affected languages are:
Arabic (ar_SA)
Persian (fa_IR)
Hebrew (he_IL)
(Well, those are all right-to-left languages available in Minecraft)
How to reproduce:
Open Minecraft.
Go to the language options and change your language to either Arabic, Persian or Hebrew.
Open a world.
Switch to Creative mode.
Open your Creative inventory.
Open the Combat or Tools tab.
Hover over a weapon or a tool.
Look at that crazy tooltip.
Cry because languages are evil.
(I hope this description was accurate enough. Also, you can skip the last step if you want.)
Attachments:
hebrew_tooltip.png
– Example of unformatted tooltip in Hebrew writing systemarabic_tooltip.png
– Example of unformatted tooltip in Arabic writing system
About this report:
I searched for possible duplicates for about an hour and didn't find any, what surprised me because this bug is pretty fatal. I'm really sorry if I overlooked one and posted another duplicate report 😞
Also, this is not a translation issue, because formatting sequences like §7
aren't translated at Crowdin but are hardcoded.
Related issues
duplicates
Attachments
Comments


Tags should be added in Labels

Addionally the lines of the tootips are lieft aligned but should be right aligned.
@@unknown: I know, but JIRA was pretty buggy yesterday so I couldn't edit the Labels.
@@unknown: Added that to the report.
Best fix I think for this would be to migrate anything using the hard coded formatting markers to use the IChatComponent like text tree's

Dupe of MC-57869