Sky Resources 2

Sky Resources 2

3M Downloads

[Feature Request]I18n Support for Tooltips and GUIs' Tips

SihenZhang opened this issue ยท 1 comments

commented

There are some hardcoded tooltips and GUIs' Tips for some machines just like below.

if (getFuelType().equals("Fuel"))
return "Furnace Fuels Have " + getHeatNum(useFuelInfo, useEfficiencyInfo) + "% HU";
else if (getFuelType().equals("FE"))
return getHeatNum(useFuelInfo, useEfficiencyInfo) + " FE Per HU";
else if (getFuelType() instanceof ItemStack)
return ((ItemStack) getFuelType()).getDisplayName() + " gives "
+ getHeatNum(useFuelInfo, useEfficiencyInfo) + " HU";
else if (getFuelType() instanceof Fluid)
return "1 mB " + ((Fluid) getFuelType()).getLocalizedName(new FluidStack((Fluid) getFuelType(), 0))
+ " gives " + getHeatNum(useFuelInfo, useEfficiencyInfo) + " HU";

if (tile.hasValidMultiblock())
list.add("Multiblock Formed!");
else
list.add("Multiblock Not Formed.");

However, when using Chinese, the tooltips will become just like this.

Though these will not be too hard to understand for some players who know a little English, it is awful that Chinese and English are being put together.

I know that improving the tooltips may cost lots of time, but I am looking forward to have it done. And if more i18m were added, I'd like to translate it.

commented

Yeah, this is on my to do list, but I'm focusing on adding features (and changing some of stat display of machines) before I clean up translation stuff.