package com.insane.mattercrystals.fundamentals;

import net.minecraft.util.StatCollector;

public class Fundamental {
	
	public static final int length = Type.values().length;

	public enum Type
	{
		EARTH, FIRE, WATER, STONE, AIR;
	}

	public static String getTranslatedString(Type t)
	{
		String ret = "string.fundamental";
		switch (t)
		{
		case EARTH:
			ret += "Earth";
			break;
		case FIRE:
			ret += "Fire";
			break;
		case WATER:
			ret += "Water";
			break;
		case STONE:
			ret += "Stone";
			break;
		case AIR:
			ret += "Air";
		}
		
		return StatCollector.translateToLocal(ret);

	}

}

@@ -230,325 +230,160 @@
 R;%0A%09
-%7D%0A%0A%09public static String getTranslatedString(
+%09%0A%09%09private String name;%0A%09%09%0A%09%09public 
 Type
- t
+(
 )%0A
+%09
 %09%7B%0A%09%09
-String ret = %22s
+%09name = S
 tring
-.fundamental%22;%0A%09%09switch (t)%0A%09%09%7B%0A%09%09case EARTH:%0A%09%09%09ret += %22Earth%22;%0A%09%09%09break;%0A%09%09case FIRE:%0A%09%09%09ret += %22Fire%22;%0A%09%09%09break;%0A%09%09case WATER:%0A%09%09%09ret += %22Water%22;%0A%09%09%09break;%0A%09%09case STONE:%0A%09%09%09ret += %22Stone%22;%0A%09%09%09break;%0A%09%09case AIR:%0A%09%09%09ret += %22Air%22;%0A%09%09%7D
+Utils.capitalize(name().toLowerCase());%0A%09%09%7D%0A%09%09%0A%09%09public String getLocalizedName()%0A%09%09%7B
 %0A%09%09
-%0A%09
 %09ret
@@ -421,17 +421,43 @@
 cal(
-ret);%0A
+%22string.fundamental%22 + name);%0A%09%09%7D
 %0A%09%7D%0A
-%0A
 %7D%0A

Clean up fundamental localization