Translatable areas
Translatable Template table gui title, gates gui title, still and moving oil (in NEI) (and added Oils to en_US.properties)
This commit is contained in:
parent
b264f29f88
commit
92fb7e8afe
4 changed files with 17 additions and 14 deletions
|
@ -87,4 +87,6 @@ tile.blockHopper=Hopper
|
|||
tile.pumpBlock=Pump
|
||||
tile.engineWood=Redstone Engine
|
||||
tile.engineStone=Stirling Engine
|
||||
tile.engineIron=Combustion Engine
|
||||
tile.engineIron=Combustion Engine
|
||||
tile.oilStill=Oil
|
||||
tile.oilMoving=Oil
|
|
@ -120,12 +120,12 @@ public class BuildCraftEnergy {
|
|||
LanguageRegistry.addName(new ItemStack(engineBlock, 1, 2), "Combustion Engine");
|
||||
|
||||
oilStill = (new BlockOilStill(oilStillId.getInt(DefaultProps.OIL_STILL_ID), Material.water)).setBlockName("oil");
|
||||
LanguageRegistry.addName(oilStill.setBlockName("oilStill"), "Oil");
|
||||
GameRegistry.registerBlock(oilStill);
|
||||
CoreProxy.proxy.addName(oilStill.setBlockName("oilStill"), "Oil");
|
||||
CoreProxy.proxy.registerBlock(oilStill);
|
||||
|
||||
oilMoving = (new BlockOilFlowing(oilMovingId.getInt(DefaultProps.OIL_MOVING_ID), Material.water)).setBlockName("oil");
|
||||
LanguageRegistry.addName(oilMoving.setBlockName("oilMoving"), "Oil");
|
||||
GameRegistry.registerBlock(oilMoving);
|
||||
CoreProxy.proxy.addName(oilMoving.setBlockName("oilMoving"), "Oil");
|
||||
CoreProxy.proxy.registerBlock(oilMoving);
|
||||
|
||||
// Oil and fuel
|
||||
if (oilMoving.blockID + 1 != oilStill.blockID)
|
||||
|
|
|
@ -42,7 +42,8 @@ public class GuiTemplate extends GuiBuildCraft {
|
|||
|
||||
@Override
|
||||
protected void drawGuiContainerForegroundLayer() {
|
||||
fontRenderer.drawString(template.getInvName(), getCenteredOffset(template.getInvName()), 6, 0x404040);
|
||||
String title = StringUtil.localize("tile.architectBlock");
|
||||
fontRenderer.drawString(title, getCenteredOffset(title), 6, 0x404040);
|
||||
fontRenderer.drawString(StringUtil.localize("gui.inventory"), 8, ySize - 152, 0x404040);
|
||||
|
||||
if (editMode && ((new Date()).getTime() / 100) % 8 >= 4)
|
||||
|
|
|
@ -11,6 +11,7 @@ import buildcraft.core.DefaultProps;
|
|||
import buildcraft.core.GuiIds;
|
||||
import buildcraft.core.proxy.CoreProxy;
|
||||
import buildcraft.core.utils.Utils;
|
||||
import buildcraft.core.utils.StringUtil;
|
||||
import buildcraft.transport.triggers.ActionEnergyPulser;
|
||||
|
||||
import net.minecraft.src.EntityPlayer;
|
||||
|
@ -80,22 +81,21 @@ public class GateVanilla extends Gate {
|
|||
|
||||
@Override
|
||||
public String getName() {
|
||||
|
||||
switch (kind) {
|
||||
case Single:
|
||||
return "Gate";
|
||||
return StringUtil.localize("item.pipeGate.0");
|
||||
case AND_2:
|
||||
return "Iron AND Gate";
|
||||
return StringUtil.localize("item.pipeGate.1");
|
||||
case AND_3:
|
||||
return "Golden AND Gate";
|
||||
return StringUtil.localize("item.pipeGate.3");
|
||||
case AND_4:
|
||||
return "Diamond AND Gate";
|
||||
return StringUtil.localize("item.pipeGate.5");
|
||||
case OR_2:
|
||||
return "Iron OR Gate";
|
||||
return StringUtil.localize("item.pipeGate.2");
|
||||
case OR_3:
|
||||
return "Golden OR Gate";
|
||||
return StringUtil.localize("item.pipeGate.4");
|
||||
case OR_4:
|
||||
return "Diamond OR Gate";
|
||||
return StringUtil.localize("item.pipeGate.6");
|
||||
default:
|
||||
return "";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue