Mojira Archive
MC-253278

The percentage symbol used within the level loading screen to show the loading progress of the world is untranslatable

The Bug:

The "%" symbol that's used to show the loading progress of the world within the level loading screen is missing a translation key. Every other string throughout the game that contains the "%" symbol allows it to be correctly translatable, therefore introducing an inconsistency.

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 percentage symbol used within the level loading screen to show the loading progress of the world is untranslatable.

Observed Behavior:

The percentage symbol used within the level loading screen to show the loading progress of the world is untranslatable.

Expected Behavior:

The percentage symbol used within the level loading screen to show the loading progress of the world would be translatable.

Code Analysis:

Code analysis by [Mod] Avoma can be found below.

The following is based on a decompiled version of Minecraft 22w24a using Mojang mappings.

net.minecraft.client.gui.screens.LevelLoadingScreen.java
public class LevelLoadingScreen extends Screen {
   ...
   private String getFormattedProgress() {
      return Mth.clamp(this.progressListener.getProgress(), 0, 100) + "%";
   }
   ...

If we look at the above class, we can see that the percentage symbol used within the level loading screen to show the loading progress of the world is hardcoded, and as a result, is untranslatable. This is evident through the following piece of code:

... getProgress(), 0, 100) + "%";

Fixed

[Mod] Avoma

[Mojang] slicedlime

2022-06-18, 01:43 PM

2023-09-01, 11:26 AM

2023-09-01, 11:26 AM

4

2

Community Consensus

Low

Internationalisation

translatability

1.19 - 1.20.11.19, 22w24a, 1.19.1 Pre-release 1, 1.19.1 Pre-release 2, 1.19.1 Pre-release 5, 1.19.1 Release Candidate 2, 1.19.1, 1.19.2, 22w43a, 1.19.3, 1.19.4, 1.20.1

1.20.2 Pre-release 1