diff options
author | snowleo <schneeleo@gmail.com> | 2011-11-21 03:05:18 +0100 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-11-21 03:05:18 +0100 |
commit | b5bc83e714210bcf63fa39bdac28bdc44b775742 (patch) | |
tree | f96d1e4b4e0452e8b2e146fc99e5f875511a3b3f | |
parent | 220d68f375bd117587c91f9478434eee517a33d7 (diff) | |
download | Essentials-b5bc83e714210bcf63fa39bdac28bdc44b775742.tar Essentials-b5bc83e714210bcf63fa39bdac28bdc44b775742.tar.gz Essentials-b5bc83e714210bcf63fa39bdac28bdc44b775742.tar.lz Essentials-b5bc83e714210bcf63fa39bdac28bdc44b775742.tar.xz Essentials-b5bc83e714210bcf63fa39bdac28bdc44b775742.zip |
Fixing the tests
-rw-r--r-- | Essentials/src/com/earth2me/essentials/I18n.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Essentials/src/com/earth2me/essentials/I18n.java b/Essentials/src/com/earth2me/essentials/I18n.java index 9511a0f96..4c282076e 100644 --- a/Essentials/src/com/earth2me/essentials/I18n.java +++ b/Essentials/src/com/earth2me/essentials/I18n.java @@ -9,6 +9,7 @@ import java.net.URL; import java.text.MessageFormat; import java.util.*; import java.util.logging.Level; +import java.util.logging.Logger; import org.bukkit.Bukkit; @@ -62,7 +63,7 @@ public class I18n } catch (MissingResourceException ex) { - Bukkit.getLogger().log(Level.WARNING, String.format("Missing translation key \"%s\" in translation file %s", ex.getKey(), localeBundle.getLocale().toString()), ex); + Logger.getLogger("Minecraft").log(Level.WARNING, String.format("Missing translation key \"%s\" in translation file %s", ex.getKey(), localeBundle.getLocale().toString()), ex); return defaultBundle.getString(string); } } @@ -110,7 +111,7 @@ public class I18n { currentLocale = new Locale(parts[0], parts[1], parts[2]); } - Bukkit.getLogger().log(Level.INFO, String.format("Using locale %s", currentLocale.toString())); + Logger.getLogger("Minecraft").log(Level.INFO, String.format("Using locale %s", currentLocale.toString())); customBundle = ResourceBundle.getBundle(MESSAGES, currentLocale, new FileResClassLoader(I18n.class.getClassLoader(), ess)); localeBundle = ResourceBundle.getBundle(MESSAGES, currentLocale); } |