added more german i18n
[jSite2.git] / src / net / pterodactylus / jsite / gui / SwingInterface.java
index b5d651b..a14cd7e 100644 (file)
@@ -311,6 +311,9 @@ public class SwingInterface implements CoreListener {
                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);
                }
+               configProperties.setProperty("language", I18n.getLocale().getLanguage());
                FileOutputStream configOutputStream = null;
                try {
                        configOutputStream = new FileOutputStream(configFile);