diff --git a/src/main/java/de/skate702/craftingkeys/config/GuiConfig.java b/src/main/java/de/skate702/craftingkeys/config/GuiConfig.java index 85aaeaf..af3da14 100644 --- a/src/main/java/de/skate702/craftingkeys/config/GuiConfig.java +++ b/src/main/java/de/skate702/craftingkeys/config/GuiConfig.java @@ -1,5 +1,6 @@ package de.skate702.craftingkeys.config; +import de.skate702.craftingkeys.util.LanguageLocalizer; import net.minecraft.client.gui.GuiButton; import net.minecraft.client.gui.GuiScreen; import net.minecraft.util.ResourceLocation; @@ -67,11 +68,11 @@ public class GuiConfig extends GuiScreen { GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); drawDefaultBackground(); //drawWorldBackground(0); //Title - drawCenteredString(fontRendererObj, "Crafting Keys Config", width / 2, height / 2 - 115, pureWhite.getRGB()); + drawCenteredString(fontRendererObj, LanguageLocalizer.localize("craftingkeys.config.title"), width / 2, height / 2 - 115, pureWhite.getRGB()); // Info-text and fake line - drawCenteredString(fontRendererObj, "Configure your keys here. Click \"Save\" when finished!", width / 2, height / 2 - 10, pureWhite.getRGB()); + drawCenteredString(fontRendererObj, LanguageLocalizer.localize("craftingkeys.config.description"), width / 2, height / 2 - 10, pureWhite.getRGB()); drawCenteredString(fontRendererObj, "- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -", width / 2, height / 2 + 8, lightGray.getRGB()); - drawCenteredString(fontRendererObj, "Use the buttons to select the GUI which you want to see the Keybindings for!", width / 2, height / 2 + 23, pureWhite.getRGB()); + drawCenteredString(fontRendererObj, LanguageLocalizer.localize("craftingkeys.config.usage"), width / 2, height / 2 + 23, pureWhite.getRGB()); // Key Info drawCenteredString(fontRendererObj, "Stack Key", guiBasePosition + 130, height / 2 - 96, pureWhite.getRGB()); drawCenteredString(fontRendererObj, "Drop Key", guiBasePosition + 130, height / 2 - 58, pureWhite.getRGB()); @@ -197,8 +198,8 @@ public class GuiConfig extends GuiScreen { private void addStandardButtons(){ // Add control buttons - buttonList.add((new GuiButton(buttonAbortID, width - 53, 3, 50, 20, "Abort"))); - buttonList.add((new GuiButton(buttonSaveID, width - 53, 26, 50, 20, "Save"))); + buttonList.add((new GuiButton(buttonAbortID, width - 53, 3, 50, 20, LanguageLocalizer.localize("craftingkeys.config.button.abort")))); + buttonList.add((new GuiButton(buttonSaveID, width - 53, 26, 50, 20, LanguageLocalizer.localize("craftingkeys.config.button.save")))); //I don't know if you want to change those for every gui buttonList.add((new GuiButton(buttonStackID, guiBasePosition + 105, height / 2 - 84, 50, 20, "Shift"))); buttonList.add((new GuiButton(buttonDropID, guiBasePosition + 105, height / 2 - 46, 50, 20, "Space"))); diff --git a/src/main/resources/assets/craftingkeys/lang/de_DE.lang b/src/main/resources/assets/craftingkeys/lang/de_DE.lang index ffe9858..e7fbf82 100644 --- a/src/main/resources/assets/craftingkeys/lang/de_DE.lang +++ b/src/main/resources/assets/craftingkeys/lang/de_DE.lang @@ -26,4 +26,11 @@ de.skate702.craftingkeys.config.other.tooltip=Saemtliche anderen Einstellungen s # Warning de.skate702.craftingkeys.warn.line1=Achtung: Crafting-Keys befindet sich in der Alpha! de.skate702.craftingkeys.warn.line2=Es gibt noch viele Fehler, und es fehlen noch einige Funktionen. -de.skate702.craftingkeys.warn.line3=Mehr Info's findest du auf: https://github.com/0xSeb/CraftingKeys! \ No newline at end of file +de.skate702.craftingkeys.warn.line3=Mehr Info's findest du auf: https://github.com/0xSeb/CraftingKeys! + +craftingkeys.config.title=Crafting Keys Konfiguration +craftingkeys.config.description=Konfiguriere hier deine Tastenbelegung und klicke dann auf "Sichern". +craftingkeys.config.button.save=Sichern +craftingkeys.config.button.abort=Abbruch +craftingkeys.config.usage=Waehle das GUI, fuer das du die Tastenbelegung sehen moechtest. + diff --git a/src/main/resources/assets/craftingkeys/lang/en_US.lang b/src/main/resources/assets/craftingkeys/lang/en_US.lang index 88f3c5a..2513ed9 100644 --- a/src/main/resources/assets/craftingkeys/lang/en_US.lang +++ b/src/main/resources/assets/craftingkeys/lang/en_US.lang @@ -27,3 +27,10 @@ de.skate702.craftingkeys.config.other.tooltip=All other settings are here! de.skate702.craftingkeys.warn.line1=Warning: Crafting Keys is still in development! de.skate702.craftingkeys.warn.line2=This mod is not complete and there are some errors left. de.skate702.craftingkeys.warn.line3=More Information: https://github.com/0xSeb/CraftingKeys! + +craftingkeys.config.title=Crafting Keys Config +craftingkeys.config.description=Configure your keys here. Click "Save" when finished! +craftingkeys.config.button.save=Save +craftingkeys.config.button.abort=Abort +craftingkeys.config.usage=Use the buttons to select the GUI which you want to see the Keybindings for! +