Note user that locale is loaded from locales directory

This commit is contained in:
Mark Vainomaa 2019-04-30 20:14:42 +03:00
parent ec574a6b63
commit 5dc9c3f732

View File

@ -111,6 +111,7 @@ public final class LocaleLoader {
Path localePath = Paths.get(mcMMO.getLocalesDirectory() + "locale_" + locale.toString() + ".properties");
if (Files.exists(localePath) && Files.isRegularFile(localePath)) {
try (Reader localeReader = Files.newBufferedReader(localePath)) {
mcMMO.p.getLogger().log(Level.INFO, "Loading locale from {0}", localePath);
filesystemBundle = new PropertyResourceBundle(localeReader);
} catch (IOException e) {
mcMMO.p.getLogger().log(Level.WARNING, "Failed to load locale from " + localePath, e);