From 1448d8d4af8445fa15a4648699fae00954d1f040 Mon Sep 17 00:00:00 2001 From: Alexander Brandes Date: Sat, 14 Jan 2023 00:42:46 +0100 Subject: [PATCH] Fixes #3906 by fine-graining the help menu generation localization support --- .../main/java/com/plotsquared/core/command/Help.java | 12 ++++++------ Core/src/main/resources/lang/messages_en.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Core/src/main/java/com/plotsquared/core/command/Help.java b/Core/src/main/java/com/plotsquared/core/command/Help.java index 3632cf05b..ff12841b9 100644 --- a/Core/src/main/java/com/plotsquared/core/command/Help.java +++ b/Core/src/main/java/com/plotsquared/core/command/Help.java @@ -120,9 +120,9 @@ public class Help extends Command { .deserialize( TranslatableCaption.of("help.help_info_item").getComponent(player), TagResolver.builder() - .tag("command", Tag.inserting(Component.text("/plot help"))) - .tag("category", Tag.inserting(Component.text(c.name().toLowerCase()))) - .tag("category_desc", Tag.inserting(c.toComponent(player))) + .tag("command", Tag.inserting(Component.text("/plot help"))) + .tag("category", Tag.inserting(Component.text(c.name().toLowerCase()))) + .tag("category_desc", Tag.inserting(c.toComponent(player))) .build() )); } @@ -130,9 +130,9 @@ public class Help extends Command { .deserialize( TranslatableCaption.of("help.help_info_item").getComponent(player), TagResolver.builder() - .tag("command", Tag.inserting(Component.text("/plot help"))) - .tag("category", Tag.inserting(Component.text("all"))) - .tag("category_desc", Tag.inserting(Component.text("Display all commands"))) + .tag("command", Tag.inserting(Component.text("/plot help"))) + .tag("category", Tag.inserting(Component.text("all"))) + .tag("category_desc", Tag.inserting(TranslatableCaption.of("help.help_display_all_commands").toComponent(player))) .build() )); builder.append(Component.newline()).append(MINI_MESSAGE.deserialize(TranslatableCaption diff --git a/Core/src/main/resources/lang/messages_en.json b/Core/src/main/resources/lang/messages_en.json index 081fa71ae..754f6b285 100644 --- a/Core/src/main/resources/lang/messages_en.json +++ b/Core/src/main/resources/lang/messages_en.json @@ -437,7 +437,7 @@ "help.help_footer": "--------- PlotSquared Help ---------", "help.help_info_item": " - ", "help.help_item": " []\n - \n", - "help.help_display_all_commands": "Display all commands.", + "help.help_display_all_commands": "Display all commands.", "help.direction": "Current direction: ", "help.no_permission": "You have no permission to access commands of that sub category, hence you cannot access the help page.", "category.command_category_claiming": "Claiming",