The text used for the credits button within the title screen is untranslatable
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:
- 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 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 [Mod] 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!", ...
2017-08-02, 11:22 AM
2023-09-01, 02:26 PM
2023-09-01, 02:26 PM
16
14