X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fi18n%2FI18n.java;h=0fe571a1d0b2decaa95a024f0bd7136d35302cfa;hb=d7d47df76c18b4340d15ca785e65ab920ccae50e;hp=ae6bef5043b131d814839f4f2ca240ccdfe96d0d;hpb=3eef5aa816b0f219c0ef384a0b28ec4d59e66c85;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/i18n/I18n.java b/src/net/pterodactylus/jsite/i18n/I18n.java index ae6bef5..0fe571a 100644 --- a/src/net/pterodactylus/jsite/i18n/I18n.java +++ b/src/net/pterodactylus/jsite/i18n/I18n.java @@ -31,10 +31,13 @@ import java.util.Locale; import java.util.MissingResourceException; import java.util.Properties; import java.util.StringTokenizer; +import java.util.logging.Level; +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 +47,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 +93,8 @@ public class I18n { String value = null; value = currentLanguage.getProperty(key); if (value == null) { - System.err.println("please fix “" + key + "”!"); + logger.log(Level.WARNING, "please fix “" + key + "”!", new Throwable()); + /* TODO - replace with value when done! */ return null; } if ((parameters != null) && (parameters.length > 0)) {