Fix I18n file not loading from Essentials folder, when the locale is not defined in config.

This commit is contained in:
snowleo 2011-12-07 11:22:02 +01:00
parent 5b539bf034
commit 5c02346f85

View File

@ -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);
}