X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fi18n%2FI18n.java;h=90df053fb7dc641912c335b73b7b706f8792949e;hb=c5708999783223b63de14f220409ec3a782b0a6f;hp=e069fa5da7faa82c3e7002e2c19b98d4a967b033;hpb=a2d5b5dbe13f00538a80237568a5c22f1935428d;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/i18n/I18n.java b/src/net/pterodactylus/jsite/i18n/I18n.java index e069fa5..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.out.println("please fix “" + key + "”!"); + logger.warning("please fix “" + key + "”!"); + /* TODO - replace with value when done! */ return null; } if ((parameters != null) && (parameters.length > 0)) {