Localized the name of the Calcinator in its Gui

This commit is contained in:
pahimar 2012-10-11 13:33:50 -04:00
parent 4f188ca935
commit 792543eaac
3 changed files with 7 additions and 2 deletions

View file

@ -4,6 +4,7 @@ import org.lwjgl.opengl.GL11;
import cpw.mods.fml.common.Side; import cpw.mods.fml.common.Side;
import cpw.mods.fml.common.asm.SideOnly; import cpw.mods.fml.common.asm.SideOnly;
import cpw.mods.fml.common.registry.LanguageRegistry;
import ee3.common.container.ContainerCalcinator; import ee3.common.container.ContainerCalcinator;
import ee3.common.lib.Reference; import ee3.common.lib.Reference;
import ee3.common.tile.TileCalcinator; import ee3.common.tile.TileCalcinator;
@ -26,7 +27,7 @@ public class GuiCalcinator extends GuiContainer {
protected void drawGuiContainerForegroundLayer() protected void drawGuiContainerForegroundLayer()
{ {
this.fontRenderer.drawString("Calcinator", 60, 6, 4210752); this.fontRenderer.drawString(LanguageRegistry.instance().getStringLocalization(Reference.GUI_CALCINATOR_NAME), 60, 6, 4210752);
this.fontRenderer.drawString(StatCollector.translateToLocal("container.inventory"), 8, this.ySize - 96 + 2, 4210752); this.fontRenderer.drawString(StatCollector.translateToLocal("container.inventory"), 8, this.ySize - 96 + 2, 4210752);
} }

View file

@ -49,7 +49,10 @@ public class Reference {
public static final String GUI_SHEET_LOCATION = "/ee3/art/gui/"; public static final String GUI_SHEET_LOCATION = "/ee3/art/gui/";
public static final String ITEM_SPRITE_SHEET = "ee3_items.png"; public static final String ITEM_SPRITE_SHEET = "ee3_items.png";
public static final String BLOCK_SPRITE_SHEET = "ee3_blocks.png"; public static final String BLOCK_SPRITE_SHEET = "ee3_blocks.png";
/* Gui related constants */
public static final String GUI_CALCINATOR_NAME = "gui.calcinator.name";
/* General Tile Entity related constants */ /* General Tile Entity related constants */
public static final String TE_GEN_OWNER_NBT_TAG_LABEL = "owner"; public static final String TE_GEN_OWNER_NBT_TAG_LABEL = "owner";
public static final String TE_GEN_STATE_NBT_TAG_LABEL = "state"; public static final String TE_GEN_STATE_NBT_TAG_LABEL = "state";

View file

@ -8,6 +8,7 @@
<entry key="tile.redWaterStill.name">Red Water (Still)</entry> <entry key="tile.redWaterStill.name">Red Water (Still)</entry>
<entry key="tile.redWaterFlowing.name">Red Water (Flowing)</entry> <entry key="tile.redWaterFlowing.name">Red Water (Flowing)</entry>
<entry key="tile.calcinator.name">Calcinator</entry> <entry key="tile.calcinator.name">Calcinator</entry>
<entry key="gui.calcinator.name">Calcinator</entry>
<entry key="version.init_log_message">Initializing version check for Equivalent Exchange against the remote version authority file, located at</entry> <entry key="version.init_log_message">Initializing version check for Equivalent Exchange against the remote version authority file, located at</entry>
<entry key="version.uninitialized">The version check for Equivalent Exchange did not complete successfully (version check did not initialize properly)</entry> <entry key="version.uninitialized">The version check for Equivalent Exchange did not complete successfully (version check did not initialize properly)</entry>
<entry key="version.current">You are currently using the most up to date version of Equivalent Exchange for your version of Minecraft (yay!)</entry> <entry key="version.current">You are currently using the most up to date version of Equivalent Exchange for your version of Minecraft (yay!)</entry>