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

The text used for the credits button within the title screen is untranslatable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 1.20.2 Pre-release 1
    • Minecraft 1.12, Minecraft 1.12.1, Minecraft 1.12.2 Pre-Release 1, Minecraft 1.12.2 Pre-Release 2, Minecraft 1.12.2, Minecraft 18w07c, Minecraft 1.13.1, 1.16.3, 1.18.1, 1.18.2 Release Candidate 1, 1.18.2, 22w17a, 22w18a, 1.19, 1.19.2, 22w43a, 1.19.3, 1.19.4, 1.20.1
    • Confirmed
    • Text
    • Low

      The Bug:

      The "Copyright Mojang AB. Do not distribute!" text used for the credits button within the title screen is untranslatable and is missing a translation key.

      Steps to Reproduce:

      1. Attempt to search for the existence of this string by using this search filter on the official Minecraft crowdin project.
      2. Take note as to whether or not the text used for the credits button within the title screen is untranslatable.

      Observed Behavior:

      The text used for the credits button within the title screen is untranslatable.

      Expected Behavior:

      The text used for the credits button within the title screen would be translatable.

      Code Analysis:

      Code analysis by Avoma can be found below.

      The following is based on a decompiled version of Minecraft 1.18.1 using MCP-Reborn.

      net.minecraft.client.gui.screens.TitleScreen.java
      public class TitleScreen extends Screen {
         ...
         public void render(PoseStack $ps, int $i0, int $i1, float $f) {
            ...
            int l = Mth.ceil(f1 * 255.0F) << 24;
            if ((l & -67108864) != 0) {
               ...
               drawString($ps, this.font, "Copyright Mojang AB. Do not distribute!", this.copyrightX, this.height - 10, 16777215 | l);
               ...

      If we look at the above class, we can see that the text used for the credits button within the title screen is hardcoded, and as a result, is untranslatable. This is evident through the following piece of code:

      drawString($ps, this.font, "Copyright Mojang AB. Do not distribute!", ...

            slicedlime [Mojang] slicedlime
            Avoma [Mod] Avoma
            Votes:
            16 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved:
              CHK: