From 76c6be9ba731e681c7179a99594f2de983031f1c Mon Sep 17 00:00:00 2001 From: BlockyTheDev <86119630+BlockyTheDev@users.noreply.github.com> Date: Thu, 13 Oct 2022 19:19:20 +0200 Subject: [PATCH] Fix 'No resource for locale 'lang' found ' error (#3830) * Fix #3820 * Reword message and add link to completed translations * Fix #3820 * Reword message and add link to completed translations * Add line breaks for better code readability * Add line breaks for better code readability Co-authored-by: Alexander Brandes --- .../caption/load/ClassLoaderCaptionProvider.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/configuration/caption/load/ClassLoaderCaptionProvider.java b/Core/src/main/java/com/plotsquared/core/configuration/caption/load/ClassLoaderCaptionProvider.java index 53fb35473..14b4cd624 100644 --- a/Core/src/main/java/com/plotsquared/core/configuration/caption/load/ClassLoaderCaptionProvider.java +++ b/Core/src/main/java/com/plotsquared/core/configuration/caption/load/ClassLoaderCaptionProvider.java @@ -53,7 +53,10 @@ final class ClassLoaderCaptionProvider implements DefaultCaptionProvider { try { final InputStream stream = this.classLoader.getResourceAsStream(url); if (stream == null) { - LOGGER.warn("No resource for locale '{}' found", locale); + LOGGER.info("No resource for locale '{}' found in the plugin file." + + "Please ensure you have placed the latest version of the file messages_{}.json in the 'lang' folder." + + "You may be able to find completed translations at https://intellectualsites.crowdin.com/plotsquared", + locale, locale); return null; } try (final BufferedReader reader = new BufferedReader(new InputStreamReader(stream))) {