projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding a look & feel breaks antialiasing with metal theme
[jSite2.git]
/
src
/
net
/
pterodactylus
/
jsite
/
i18n
/
I18n.java
diff --git
a/src/net/pterodactylus/jsite/i18n/I18n.java
b/src/net/pterodactylus/jsite/i18n/I18n.java
index
e069fa5
..
0fe571a
100644
(file)
--- 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.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 javax.swing.KeyStroke;
import net.pterodactylus.util.io.Closer;
+import net.pterodactylus.util.logging.Logging;
/**
* Class that handles i18n.
/**
* Class that handles i18n.
@@
-44,6
+47,9
@@
import net.pterodactylus.util.io.Closer;
*/
public class I18n {
*/
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<I18nable> i18nables = new ArrayList<I18nable>();
/** List of I18nables that are notified when the language changes. */
private static final List<I18nable> i18nables = new ArrayList<I18nable>();
@@
-87,7
+93,8
@@
public class I18n {
String value = null;
value = currentLanguage.getProperty(key);
if (value == null) {
String value = null;
value = currentLanguage.getProperty(key);
if (value == null) {
- System.out.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)) {
return null;
}
if ((parameters != null) && (parameters.length > 0)) {