Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-204825

RTL languages not showing correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • None
    • 1.16.2, 1.16.4, 20w45a, 1.19.1, 1.20.1, 1.21.1
    • None
    • Confirmed
    • Internationalisation
    • Important
    • Platform

      So as I see you've fixed here:  MC-35765

      As I see you've done a great job at fixing the issue but seems like there are still a few issues

      for example:
      The language fix works only after actually sending the text but not on the client-side!
      Let's take the word "שלום" which is in Hebrew (RTL language)
      When I try to write it in the text bar I get an unfixed and flipped version of the word :

      if I send this text It shows the right text : 

      Another really bad issue is the fixing of the RTL languages when you enter an English word inside!
      let's say I want to say "The player <player> has died" but in Hebrew which is an RTL language.
      "נהרג בקרב <player> השחקן"
      I'll add the player's name to show the bug:
      "נהרג בקרב RDev_ השחקן"

      Can't help but notice that even when I try to use it here I get the same exact issue so I had to engineer writing this text!

      If I wanted to write this text without engineering it then the text would be:
      "השחקן RDev_ נהרג בקרב"
      but the right version is: "נהרג בקרב RDev_ השחקן"

      So when I add any English letter the whole sentence would just flip...
      here it is in Minecraft as well:

      I know the second bug is very very complicated to fix but it is very essential!

      Edit: for the second bug shown I have a code that can fix the issue on the server-side, I'll link it here in case it would be helpful to understand the current issue and how to we handle it on the server side to fix it via a spigot plugin.
      link: https://github.com/LielAmar/LanguageFix/blob/master/src/main/java/com/lielamar/languagefix/shared/handlers/FixHandlerPost1_16.java

            Unassigned Unassigned
            RDev_ Rotem Avitan
            Votes:
            8 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              CHK: