AdminShop Overhauled

AdminShop Overhauled

161k Downloads

Can't translate the word "Balance" in the balance display

James103 opened this issue ยท 0 comments

commented

Is your feature request related to a problem? Please describe.
I can't translate the word "Balance" in the balance display without editing the source code and recompiling the mod, because that word is hardcoded in the source code, here:

event.getLeft().add(String.format("Balance: " + I18n.get("gui.money_message") + "%s", str));

Describe the solution you'd like
Move the word into a new string in en_us.json to allow translators to translate it into other languages (such as through a resource pack) and have Minecraft's localization system handle it automatically.

Describe alternatives you've considered
One can translate the word by editing it and recompiling the mod; however, that is tedious and means the new jar file only makes sense for one language.