From 06a8ace53c3c1fcce02e9a9d085b82acb8cecb71 Mon Sep 17 00:00:00 2001 From: nea Date: Sat, 3 Jun 2023 01:37:03 +0200 Subject: Fix translation --- src/main/kotlin/moe/nea/firmament/gui/profileviewer/ProfileViewer.kt | 2 +- src/main/resources/assets/firmament/lang/en_us.json | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'src/main') diff --git a/src/main/kotlin/moe/nea/firmament/gui/profileviewer/ProfileViewer.kt b/src/main/kotlin/moe/nea/firmament/gui/profileviewer/ProfileViewer.kt index 98e9489..6b70e6c 100644 --- a/src/main/kotlin/moe/nea/firmament/gui/profileviewer/ProfileViewer.kt +++ b/src/main/kotlin/moe/nea/firmament/gui/profileviewer/ProfileViewer.kt @@ -49,7 +49,7 @@ class ProfileViewer( val names = mapOf(uuid to (Routes.getPlayerNameForUUID(uuid) ?: name)) val data = Routes.getAccountData(uuid) if (data == null) { - source.sendError(Text.translatable("firmament.pv.nohypixel", name)) + source.sendError(Text.translatable("firmament.pv.noprofile", name)) return@launch } val accountData = mapOf(data.uuid to data) diff --git a/src/main/resources/assets/firmament/lang/en_us.json b/src/main/resources/assets/firmament/lang/en_us.json index 91bca24..2641173 100644 --- a/src/main/resources/assets/firmament/lang/en_us.json +++ b/src/main/resources/assets/firmament/lang/en_us.json @@ -54,5 +54,7 @@ "firmament.pv.skills.social": "Social", "firmament.pv.skills.enchanting": "Enchanting", "firmament.pv.skills.total": "Total Exp: %s", - "firmament.pv.lookingup": "Looking up %s" + "firmament.pv.lookingup": "Looking up %s", + "firmament.pv.noprofile": "%s has no SkyBlock profiles", + "firmament.pv.noplayer": "%s is not a Minecraft player" } -- cgit