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

Advancement announcement message has switched brackets for right-to-left languages


    • Icon: Bug Bug
    • Resolution: Fixed
    • 20w28a
    • 1.16 Release Candidate 1, 1.16
    • None
    • Confirmed
    • Rendering, UI
    • Important

      The bug

      It appears for right-to-left languages, such as Arabic or Hebrew, the square brackets of the advancement announcement messages in chat are switched.

      Note that this appears to not be a translation issue for these specific languages. The problem is rather that the square brackets are not part of the translation, but are instead appended by code (see net.minecraft.advancements.Advancement constructor). This might be solvable by adding a translation [%s] to which then the formatting is applied and the advancement name is inserted into it.

      This is not a duplicate of MC-191571 because for advancements separate code is used. However, it would make sense to reuse to same code used by MC-191571 nonetheless.

      Reproduction steps

      1. Change the language to a right-to-left one, e.g. Arabic (first right-to-left language in the list)
      2. Grant yourself an advancement
        /advancement grant @s everything

        The square brackets are switched

            boq [Mojang] Bartosz Bok
            marcono1234 Marcono1234
            3 Vote for this issue
            4 Start watching this issue