From: David ‘Bombe’ Roden Date: Sat, 17 May 2008 17:58:40 +0000 (+0000) Subject: use logger instead of System.out X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ef72e1ad8e194ccfd6119a2f1d23b4f0efe00e87;p=jSite2.git use logger instead of System.out add TODO git-svn-id: http://trooper/svn/projects/jSite/trunk@910 c3eda9e8-030b-0410-8277-bc7414b0a119 --- diff --git a/src/net/pterodactylus/jsite/i18n/I18n.java b/src/net/pterodactylus/jsite/i18n/I18n.java index ae6bef5..90df053 100644 --- a/src/net/pterodactylus/jsite/i18n/I18n.java +++ b/src/net/pterodactylus/jsite/i18n/I18n.java @@ -31,10 +31,12 @@ import java.util.Locale; import java.util.MissingResourceException; import java.util.Properties; import java.util.StringTokenizer; +import java.util.logging.Logger; import javax.swing.KeyStroke; import net.pterodactylus.util.io.Closer; +import net.pterodactylus.util.logging.Logging; /** * Class that handles i18n. @@ -44,6 +46,9 @@ import net.pterodactylus.util.io.Closer; */ public class I18n { + /** Logger. */ + private static final Logger logger = Logging.getLogger(I18n.class.getName()); + /** List of I18nables that are notified when the language changes. */ private static final List i18nables = new ArrayList(); @@ -87,7 +92,8 @@ public class I18n { String value = null; value = currentLanguage.getProperty(key); if (value == null) { - System.err.println("please fix “" + key + "”!"); + logger.warning("please fix “" + key + "”!"); + /* TODO - replace with value when done! */ return null; } if ((parameters != null) && (parameters.length > 0)) {