Binnie's Mods

Binnie's Mods

26M Downloads

[1.7.10] Some hardcodded localization

KorDum opened this issue ยท 6 comments

commented

In all project's code. Need to wrap to localize method.

commented

Yes, you use this method:
forestry.api.genetics.IClimateHelper#toDisplay(forestry.api.core.EnumTemperature)

commented

Hmm. Can I get localized strings from Forestry?
ex. forestry.api.core.EnumTemperature.HELLISH.getName() returns non-localized string.

commented

How can I get IAllele object (or Allele GUID) from EnumAllele.* enums?
ex.

EnumAllele.Fertility fertility = EnumAllele.Fertility.NORMAL;
// I think it's not right
String guid = "forestry.fertility" + WordUtils.capitalize(fertility.toString().toLowerCase());
IAllele allele = alleleRegistry.getAllele(guid);
commented

forestry.api.genetics.IClimateHelper#toDisplay(forestry.api.core.EnumTemperature)

And for EnumTolerance?

commented

color or colour?
ex. getColor()

commented

Take a look at the handheld analyzer code in Forestry to see how the alleles are localized.

Forestry seems to mix color and colour all over the place. I don't have a preference.