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

Switched square brackets for right-to-left languages

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.16.1, 20w27a
    • Fix Version/s: 20w28a
    • Labels:
      None
    • Confirmation Status:
      Confirmed
    • Category:
      Text, UI
    • Mojang Priority:
      Important

      Description

      The bug

      The method net.minecraft.network.chat.ComponentUtils.wrapInSquareBrackets(Component) (1.16.1, Mojang name) causes switched square brackets for right-to-left languages because it appends the brackets manually instead of using a translation string (e.g. [%s]).

      Affected

      • /give: Item name in success message
      • /team: Team names
      • /scoreboard objectives: Objective names
      • /seed
      • ...

      Reproduction steps

      1. Change the language to a right-to-left one, e.g. Arabic (first right-to-left language in the list)
      2. Use one of the affected situation listed above

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              boq [Mojang] Bartosz Bok
              Reporter:
              marcono1234 [Mod] Marcono1234
              Votes:
              3 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                CHK: