Basic Nether Ores [Forge/Fabric]

Basic Nether Ores [Forge/Fabric]

7M Downloads

Potential fail regarding localization

dovisutu opened this issue ยท 2 comments

commented

Currently, the method used to register OreDictionary during initialization doesn't allow some localization:

OreDictionary.registerOre("block" + block.getLocalizedName().substring(0, block.getLocalizedName().length() - 6), block);

Where the substring operation on LocalizedString requires the localized text to be at least 6 charactors long. And if you want to keep the OreDictionary registered the same, you have to also keep the leading text exactly as what is in the English text, a.k.a:

tile.block_copper.name=copper ***** # where *s are the only charactor that are able to change

Which is not only unfriendly to the localizers, but sometimes even impossible for some languages like Chinese.
Also, since the key (tile.block_copper.name) is quite common, we may end up has a collision of keys which let unrelated addition of a resource pack containing other mods' .lang break the game, which only deepens the mystery for gamers.

commented

Updated the Ore Dictionary Registry may not be pretty but should work. See version 1.12.2-1.0.5

commented

Thanks for bringing this to my attention. I'll take a look at it and see what we can possibly do to make it more localization friendly.