projects
/
jSite2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added more german i18n
[jSite2.git]
/
src
/
net
/
pterodactylus
/
jsite
/
gui
/
SwingInterface.java
diff --git
a/src/net/pterodactylus/jsite/gui/SwingInterface.java
b/src/net/pterodactylus/jsite/gui/SwingInterface.java
index
b5d651b
..
a14cd7e
100644
(file)
--- a/
src/net/pterodactylus/jsite/gui/SwingInterface.java
+++ b/
src/net/pterodactylus/jsite/gui/SwingInterface.java
@@
-311,6
+311,9
@@
public class SwingInterface implements CoreListener {
if (configProperties.containsKey("userFont")) {
userFont = configProperties.getProperty("userFont");
}
if (configProperties.containsKey("userFont")) {
userFont = configProperties.getProperty("userFont");
}
+ if (configProperties.containsKey("language")) {
+ I18n.setLocale(new Locale(configProperties.getProperty("language")));
+ }
}
/**
}
/**
@@
-337,6
+340,7
@@
public class SwingInterface implements CoreListener {
if (userFont != null) {
configProperties.setProperty("userFont", userFont);
}
if (userFont != null) {
configProperties.setProperty("userFont", userFont);
}
+ configProperties.setProperty("language", I18n.getLocale().getLanguage());
FileOutputStream configOutputStream = null;
try {
configOutputStream = new FileOutputStream(configFile);
FileOutputStream configOutputStream = null;
try {
configOutputStream = new FileOutputStream(configFile);