mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-03 18:43:43 +01:00 
			
		
		
		
	Note user that locale is loaded from locales directory
This commit is contained in:
		@@ -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);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user