From 5c02346f85ffe37639b5f6485b565e5d5c978187 Mon Sep 17 00:00:00 2001 From: snowleo Date: Wed, 7 Dec 2011 11:22:02 +0100 Subject: [PATCH] Fix I18n file not loading from Essentials folder, when the locale is not defined in config. --- Essentials/src/com/earth2me/essentials/I18n.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Essentials/src/com/earth2me/essentials/I18n.java b/Essentials/src/com/earth2me/essentials/I18n.java index 33708e5cd..63fdcc065 100644 --- a/Essentials/src/com/earth2me/essentials/I18n.java +++ b/Essentials/src/com/earth2me/essentials/I18n.java @@ -28,7 +28,7 @@ public class I18n implements II18n public I18n(final IEssentials ess) { this.ess = ess; - customBundle = ResourceBundle.getBundle(MESSAGES, defaultLocale); + customBundle = ResourceBundle.getBundle(MESSAGES, defaultLocale, new FileResClassLoader(I18n.class.getClassLoader(), ess)); localeBundle = ResourceBundle.getBundle(MESSAGES, defaultLocale); defaultBundle = ResourceBundle.getBundle(MESSAGES, Locale.ENGLISH); }