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

The credits button text within the title screen is untranslatable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • None
    • 1.18.1
    • None
    • Unconfirmed
    • (Unassigned)

      The Bug:

      The credits button text within the title screen is untranslatable.

      The "Copyright Mojang AB. Do not distribute!" text displayed within the lower right corner of the title screen is untranslatable and is missing a translation key.

      Steps to Reproduce:

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

      Observed Behavior:

      The credits button text within the title screen is untranslatable.

      Expected Behavior:

      The credits button text 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 credits button text 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!", ...

            Unassigned Unassigned
            Avoma [Mod] Avoma
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: