From 356583dc0c75e0f9e1f5e6baf66834084258ef50 Mon Sep 17 00:00:00 2001 From: Lilly Rose Berner Date: Sat, 15 Jun 2024 17:02:21 +0200 Subject: [PATCH] Fix credits role translation keys not being lowercased (#713) - Fixed credits role translation keys not being lowercased --- .../modmenu/gui/widget/DescriptionListWidget.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 c1993f1b..b6bdcbea 100644 --- a/src/main/java/com/terraformersmc/modmenu/gui/widget/DescriptionListWidget.java +++ b/src/main/java/com/terraformersmc/modmenu/gui/widget/DescriptionListWidget.java @@ -353,7 +353,7 @@ public void renderScrollBar(BufferBuilder bufferBuilder, Tessellator tessellator private Text creditsRoleText(String roleName) { // Replace spaces and dashes in role names with underscores if they exist // Notably Quilted Fabric API does this with FabricMC as "Upstream Owner" - var translationKey = roleName.replaceAll("[\s-]", "_"); + var translationKey = roleName.replaceAll("[\s-]", "_").toLowerCase(); // Add an s to the default untranslated string if it ends in r since this // Fixes common role names people use in English (e.g. Author -> Authors)