mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-13 16:54:13 +00:00
Merge pull request #52 from EoD/localise-gui
Localise chisel gui elements
This commit is contained in:
commit
00c81ac21e
3 files changed
+10
-2
No files matched your search
@@ -5,6 +5,7 @@ import info.jbcs.minecraft.chisel.inventory.InventoryChiselSelection;
|
||||
import info.jbcs.minecraft.utilities.GeneralClient;
|
||||
import net.minecraft.client.gui.GuiButton;
|
||||
import net.minecraft.client.gui.inventory.GuiContainer;
|
||||
import net.minecraft.client.resources.I18n;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.entity.player.InventoryPlayer;
|
||||
import net.minecraft.inventory.Slot;
|
||||
@@ -42,7 +43,9 @@ public class GuiChisel extends GuiContainer
|
||||
{
|
||||
GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);
|
||||
|
||||
String line = isExtended() ? "Carve" : "Carve blocks";
|
||||
String line = isExtended() ?
|
||||
I18n.format(this.container.inventory.getInventoryName() + ".titleShort") :
|
||||
I18n.format(this.container.inventory.getInventoryName() + ".title");
|
||||
fontRendererObj.drawString(line, 88 - fontRendererObj.getStringWidth(line) / 2, 13, 0x404040);
|
||||
}
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ public class InventoryChiselSelection implements IInventory
|
||||
@Override
|
||||
public String getInventoryName()
|
||||
{
|
||||
return "Carve blocks";
|
||||
return "container.chisel";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -722,3 +722,8 @@ chisel.tile.blockLaboratory.15.desc=Information Console
|
||||
|
||||
# Creative Tab localizations
|
||||
itemGroup.tabChisel=Chisel Blocks
|
||||
|
||||
#Container
|
||||
container.chisel=Chisel
|
||||
container.chisel.title=Carve blocks
|
||||
container.chisel.titleShort=Carve
|
||||
Reference in new issue
Block a user