Dedicated directory for locales

This commit is contained in:
Mark Vainomaa
2019-04-30 09:31:33 +03:00
parent 0f2e1ea740
commit 1ca48051ad
2 changed files with 9 additions and 1 deletions

View File

@@ -104,7 +104,7 @@ public final class LocaleLoader {
throw new IllegalStateException("Failed to parse locale string '" + Config.getInstance().getLocale() + "'");
}
Path localePath = Paths.get(mcMMO.getMainDirectory() + "locale_" + locale.toString() + ".properties");
Path localePath = Paths.get(mcMMO.getLocalesDirectory() + "locale_" + locale.toString() + ".properties");
if (Files.exists(localePath) && Files.isRegularFile(localePath)) {
try (Reader localeReader = Files.newBufferedReader(localePath)) {
filesystemBundle = new PropertyResourceBundle(localeReader);