package ljfa.glassshards.gui;

import java.util.ArrayList;
import java.util.List;

import ljfa.glassshards.Config;
import ljfa.glassshards.Reference;
import net.minecraft.client.gui.GuiScreen;
import net.minecraftforge.common.config.ConfigElement;
import cpw.mods.fml.client.config.DummyConfigElement;
import cpw.mods.fml.client.config.GuiConfig;
import cpw.mods.fml.client.config.IConfigElement;

public class GsConfigGui extends GuiConfig {
    public GsConfigGui(GuiScreen parent) {
        super(parent, getConfigElements(), Reference.MODID, false, false, "Glass Shards configuration");
    }
    
    /** Compiles a list of config elements */
    private static List<IConfigElement> getConfigElements() {
        List<IConfigElement> list = new ArrayList<IConfigElement>();
        
        //Add categories to config GUI
        list.add(categoryElement(Config.CATEGORY_GENERAL, "General", "glassshards.configgui.ctgy.general"));
        list.add(categoryElement(Config.CATEGORY_CHISEL, "Chisel compatibility", "glassshards.configgui.ctgy.chisel"));
        
        return list;
    }
    
    /** Creates a button linking to another screen where all options of the category are available */
    private static IConfigElement categoryElement(String category, String name, String tooltip_key) {
        return new DummyConfigElement.DummyCategoryElement(name, tooltip_key,
                new ConfigElement(Config.conf.getCategory(category)).getChildElements());
    }
}

@@ -887,32 +887,33 @@
 General%22, %22glass
+_
 shards.configgui
@@ -1013,24 +1013,25 @@
 ity%22, %22glass
+_
 shards.confi

Fix wrong unlocalized name