From d9353ff54c20a08e4e078e0190fc1f364b08a2d1 Mon Sep 17 00:00:00 2001 From: nea Date: Sat, 27 Aug 2022 15:41:16 +0200 Subject: translation --- .../kotlin/moe/nea/notenoughupdates/gui/repogui.kt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt') diff --git a/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt b/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt index 00bc099..23c8d18 100644 --- a/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt +++ b/src/main/kotlin/moe/nea/notenoughupdates/gui/repogui.kt @@ -1,31 +1,31 @@ package moe.nea.notenoughupdates.gui -import moe.nea.notenoughupdates.repo.RepoManager import net.minecraft.text.Text +import moe.nea.notenoughupdates.repo.RepoManager fun repoGui(): ConfigGui { return ConfigGui(RepoManager) { - title(Text.literal("NotEnoughUpdates Repo Settings")) - toggle(Text.literal("Auto Update"), RepoManager.Config::autoUpdate) + title(Text.translatable("notenoughupdates.gui.repo.title")) + toggle(Text.translatable("notenoughupdates.gui.repo.autoupdate"), RepoManager.Config::autoUpdate) textfield( - Text.literal("Repo Username"), - Text.literal(""), + Text.translatable("notenoughupdates.gui.repo.username"), + Text.translatable("notenoughupdates.gui.repo.hint.username"), RepoManager.Config::user, maxLength = 255 ) textfield( - Text.literal("Repo Name"), - Text.literal(""), + Text.translatable("notenoughupdates.gui.repo.reponame"), + Text.translatable("notenoughupdates.gui.repo.hint.reponame"), RepoManager.Config::repo ) textfield( - Text.literal("Repo Branch"), - Text.literal(""), + Text.translatable("notenoughupdates.gui.repo.branch"), + Text.translatable("notenoughupdates.gui.repo.hint.branch"), RepoManager.Config::branch ) button( - Text.literal("Reset to Defaults"), - Text.literal("Reset"), + Text.translatable("notenoughupdates.gui.repo.reset.label"), + Text.translatable("notenoughupdates.gui.repo.reset"), ) { RepoManager.config.user = "NotEnoughUpdates" RepoManager.config.repo = "NotEnoughUpdates-REPO" -- cgit