Skip to content

Commit

Permalink
Fixing translations
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkKronicle committed Nov 10, 2021
1 parent 8baa25d commit b43a42b
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import fi.dy.masa.malilib.gui.GuiBase;
import fi.dy.masa.malilib.gui.GuiTextFieldGeneric;
import fi.dy.masa.malilib.gui.Message;
import fi.dy.masa.malilib.gui.button.IButtonActionListener;
import fi.dy.masa.malilib.util.StringUtils;
import io.github.darkkronicle.advancedchatcore.gui.buttons.NamedSimpleButton;
import io.github.darkkronicle.advancedchathud.AdvancedChatHud;
Expand Down Expand Up @@ -58,8 +59,11 @@ public void init() {
this.addTextField(text, null);

this.addButton(
new NamedSimpleButton(x, y, "advancedchat.gui.button.importtab"),
(button, mouseButton) -> importTab());
x, y, "advancedchat.gui.button.importtab", (button, mouseButton) -> importTab());
}

private void addButton(int x, int y, String translation, IButtonActionListener listener) {
this.addButton(new NamedSimpleButton(x, y, StringUtils.translate(translation)), listener);
}

public void importTab() {
Expand Down

0 comments on commit b43a42b

Please sign in to comment.