diff --git a/src/main/java/com/terraformersmc/modmenu/gui/widget/DescriptionListWidget.java b/src/main/java/com/terraformersmc/modmenu/gui/widget/DescriptionListWidget.java index ae3fff48..10779a1b 100644 --- a/src/main/java/com/terraformersmc/modmenu/gui/widget/DescriptionListWidget.java +++ b/src/main/java/com/terraformersmc/modmenu/gui/widget/DescriptionListWidget.java @@ -219,9 +219,13 @@ public void renderList(DrawContext DrawContext, int mouseX, int mouseY, float de while (iterator.hasNext()) { int indent = 8; + var role = iterator.next(); + var rolename = role.getKey(); + + var name = Text.translatableWithFallback("modmenu.credits.role." + rolename.toLowerCase(), rolename); - for (var line : textRenderer.wrapLines(Text.literal(role.getKey() + ":"), wrapWidth - 16)) { + for (var line : textRenderer.wrapLines(name.append(Text.literal(":")), wrapWidth - 16)) { children().add(new DescriptionEntry(line, indent)); indent = 16; } diff --git a/src/main/resources/assets/modmenu/lang/en_us.json b/src/main/resources/assets/modmenu/lang/en_us.json index 1c42d9fb..e0df0b13 100644 --- a/src/main/resources/assets/modmenu/lang/en_us.json +++ b/src/main/resources/assets/modmenu/lang/en_us.json @@ -87,6 +87,13 @@ "modmenu.wiki": "Wiki", "modmenu.youtube": "YouTube", + "modmenu.credits.role.author": "Authors", + "modmenu.credits.role.contributor": "Contributors", + "modmenu.credits.role.translator": "Translators", + "modmenu.credits.role.maintainer": "Maintainers", + "modmenu.credits.role.playtester": "Playtesters", + "modmenu.credits.role.illustrator": "Illustrators", + "modmenu.modsFolder": "Open Mods Folder", "modmenu.configsFolder": "Open Configs Folder",