mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-21 12:46:46 +01:00
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 <mc.cache@web.de>
This commit is contained in:
parent
308a5aa781
commit
76c6be9ba7
@ -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))) {
|
||||
|
Loading…
Reference in New Issue
Block a user