Răsfoiți Sursa

Note user that locale is loaded from locales directory

Mark Vainomaa 6 ani în urmă
părinte
comite
5dc9c3f732
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      src/main/java/com/gmail/nossr50/locale/LocaleLoader.java

+ 1 - 0
src/main/java/com/gmail/nossr50/locale/LocaleLoader.java

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