From 884805f39e2caf2835914c7ce2a0ee1a930fb320 Mon Sep 17 00:00:00 2001 From: Warrior <50800980+Warriorrrr@users.noreply.github.com> Date: Wed, 20 Nov 2024 18:32:54 +0100 Subject: [PATCH] Another two translation fixes --- .../io/github/townyadvanced/townymenus/menu/NationMenu.java | 2 +- .../java/io/github/townyadvanced/townymenus/utils/Time.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/townyadvanced/townymenus/menu/NationMenu.java b/src/main/java/io/github/townyadvanced/townymenus/menu/NationMenu.java index b19eb37..3a6796c 100644 --- a/src/main/java/io/github/townyadvanced/townymenus/menu/NationMenu.java +++ b/src/main/java/io/github/townyadvanced/townymenus/menu/NationMenu.java @@ -188,7 +188,7 @@ public static MenuInventory formatNationSetMenu(Player player) { if (nation == null) return of("msg-must-be-in-nation-to").append(of("nation-menu-set-change-name")).component(locale).color(GRAY); else if (!player.hasPermission(PermissionNodes.TOWNY_COMMAND_NATION_SET_NAME.getNode())) - return of("msg-bo-permission-to").append(of("nation-menu-set-change-name")).component(locale).color(GRAY); + return of("msg-no-permission-to").append(of("nation-menu-set-change-name")).component(locale).color(GRAY); else return of("msg-click-to").append(of("nation-menu-set-change-name")).component(locale).color(GRAY); }) diff --git a/src/main/java/io/github/townyadvanced/townymenus/utils/Time.java b/src/main/java/io/github/townyadvanced/townymenus/utils/Time.java index 7f4e5ee..553ee38 100644 --- a/src/main/java/io/github/townyadvanced/townymenus/utils/Time.java +++ b/src/main/java/io/github/townyadvanced/townymenus/utils/Time.java @@ -22,7 +22,7 @@ public static Translatable ago(long time) { final long diff = TimeUnit.MILLISECONDS.toSeconds(now - time); if (diff < MINUTE_SECONDS) - return Translatable.of("just now"); + return Translatable.of("time-just-now"); else if (diff < 2 * MINUTE_SECONDS) return Translatable.of("time-a-minute-ago"); else if (diff < 60 * MINUTE_SECONDS)