Fix #30 Add more localization (#55)

* Added missing ru_RU localization

* Fixed first letter

* Rename Binnie.Language to short Binnie.I18N
Removed some unused methods, classes.
Removed some hardcod strings, replaced it on i18n
Moved pigment colors of blocks and items to tooltips
This commit is contained in:
Alexander Kornilov authored and mezz committed 2017-05-08 00:44:56 -07:00
1 parent f6186d3cf3
commit e8802c66d3
62 files changed
+405 -264

No files matched your search

@@ -1,5 +1,6 @@
package binnie.botany.items;
import binnie.Binnie;
import binnie.botany.Botany;
import binnie.botany.CreativeTabBotany;
import binnie.botany.genetics.EnumFlowerColor;
@@ -7,8 +8,10 @@ import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraft.util.EnumChatFormatting;
import java.util.List;
@@ -19,6 +22,12 @@ public class ItemClay extends Item {
setCreativeTab(CreativeTabBotany.instance);
}
@Override
public void addInformation(ItemStack stack, EntityPlayer player, List tooltip, boolean advanced) {
super.addInformation(stack, player, tooltip, advanced);
tooltip.add(EnumChatFormatting.GRAY + EnumFlowerColor.get(stack.getItemDamage()).getName());
}
@Override
@SideOnly(Side.CLIENT)
public int getColorFromItemStack(ItemStack stack, int index) {
@@ -28,7 +37,7 @@ public class ItemClay extends Item {
@Override
public String getItemStackDisplayName(ItemStack stack) {
return EnumFlowerColor.get(stack.getItemDamage()).getName() + " Clay";
return Binnie.I18N.localise(Botany.instance, "item.clay.name");
}
@Override