From 56a3edba05fd59817f086f0e0d80241a843aae76 Mon Sep 17 00:00:00 2001 From: GirafiStudios Date: Mon, 8 Feb 2016 01:23:31 +0100 Subject: [PATCH] GUI Config Button titles and desc. localization --- src/main/java/biomesoplenty/client/gui/GuiBOPConfig.java | 7 ++++--- src/main/resources/assets/biomesoplenty/lang/en_US.lang | 7 +++++++ 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/src/main/java/biomesoplenty/client/gui/GuiBOPConfig.java b/src/main/java/biomesoplenty/client/gui/GuiBOPConfig.java index 93f732937..304f3d911 100644 --- a/src/main/java/biomesoplenty/client/gui/GuiBOPConfig.java +++ b/src/main/java/biomesoplenty/client/gui/GuiBOPConfig.java @@ -4,6 +4,7 @@ import biomesoplenty.common.config.GameplayConfigurationHandler; import biomesoplenty.common.config.MiscConfigurationHandler; import biomesoplenty.core.BiomesOPlenty; import net.minecraft.client.gui.GuiScreen; +import net.minecraft.util.StatCollector; import net.minecraftforge.common.config.ConfigElement; import net.minecraftforge.fml.client.config.DummyConfigElement; import net.minecraftforge.fml.client.config.GuiConfig; @@ -27,9 +28,9 @@ public class GuiBOPConfig extends GuiConfig List guiSettings = new ConfigElement(MiscConfigurationHandler.config.getCategory(MiscConfigurationHandler.guiSettings.toLowerCase())).getChildElements(); List textureSettings = new ConfigElement(MiscConfigurationHandler.config.getCategory(MiscConfigurationHandler.textureSettings.toLowerCase())).getChildElements(); - list.add(new DummyConfigElement.DummyCategoryElement(GameplayConfigurationHandler.convenienceSettings, BiomesOPlenty.MOD_ID.toLowerCase() + ".config.category.convenienceSettings", convenienceSettings)); - list.add(new DummyConfigElement.DummyCategoryElement(MiscConfigurationHandler.guiSettings, BiomesOPlenty.MOD_ID.toLowerCase() + ".config.category.guiSettings", guiSettings)); - list.add(new DummyConfigElement.DummyCategoryElement(MiscConfigurationHandler.textureSettings, BiomesOPlenty.MOD_ID.toLowerCase() + ".config.category.textureSettings", textureSettings)); + list.add(new DummyConfigElement.DummyCategoryElement(StatCollector.translateToLocal("config.category.convenienceSettings.title"), "config.category.convenienceSettings", convenienceSettings)); + list.add(new DummyConfigElement.DummyCategoryElement(StatCollector.translateToLocal("config.category.guiSettings.title"), "config.category.guiSettings", guiSettings)); + list.add(new DummyConfigElement.DummyCategoryElement(StatCollector.translateToLocal("config.category.textureSettings.title"), "config.category.textureSettings", textureSettings)); return list; } diff --git a/src/main/resources/assets/biomesoplenty/lang/en_US.lang b/src/main/resources/assets/biomesoplenty/lang/en_US.lang index 9548b2b9a..a1297999c 100644 --- a/src/main/resources/assets/biomesoplenty/lang/en_US.lang +++ b/src/main/resources/assets/biomesoplenty/lang/en_US.lang @@ -51,6 +51,13 @@ biome_finder.searching=Searching for %s biome_finder.found=Found %s! biome_finder.not_found=Not found, maybe %s is too far away +config.category.convenienceSettings.title=Convenience Settings +config.category.guiSettings.title=GUI Settings +config.category.textureSettings.title=Texture Settings +config.category.convenienceSettings.tooltip=Require shears to be used to collect flower drops. +config.category.guiSettings.tooltip=Use the Biomes O' Plenty World Type by default when selecting a world. +config.category.textureSettings.tooltip=Override the Forge bucket texture and use ours instead (It's nicer!) + commands.biomesoplenty.usage=/biomesoplenty [args] commands.biomesoplenty.biomename.usage=/biomesoplenty biomename [biomeId] commands.biomesoplenty.biomename.success=Biome ID %s is associated with %s