2013-12-27 23:59:59 +01:00
|
|
|
package appeng.core.localization;
|
|
|
|
|
|
|
|
import net.minecraft.util.StatCollector;
|
|
|
|
import appeng.core.AELog;
|
|
|
|
|
|
|
|
public enum GuiText
|
|
|
|
{
|
|
|
|
inventory("container"), // mc's default Inventory localization.
|
|
|
|
|
2014-01-01 09:57:16 +01:00
|
|
|
Chest, StoredEnergy, Of, Condenser, Drive, GrindStone, VibrationChamber, SpatialIOPort, NetworkStatus, LevelEmitter, Terminal, Interface, Config, StoredItems, Patterns, ImportBus, ExportBus;
|
2013-12-27 23:59:59 +01:00
|
|
|
|
|
|
|
String root;
|
|
|
|
|
|
|
|
GuiText() {
|
|
|
|
root = "gui.appliedenergistics2";
|
|
|
|
AELog.localization( "gui", getName() );
|
|
|
|
}
|
|
|
|
|
|
|
|
GuiText(String r) {
|
|
|
|
root = r;
|
|
|
|
}
|
|
|
|
|
|
|
|
private String getName()
|
|
|
|
{
|
|
|
|
return root + "." + toString();
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLocal()
|
|
|
|
{
|
|
|
|
return StatCollector.translateToLocal( getName() );
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|