X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnet%2Fpterodactylus%2Fjsite%2Fgui%2FSwingInterface.java;h=a14cd7e2dcc7cf2ee0bbba0972ff4f1266d0728a;hb=b05d1a5dbe9d88511c5ca64af179a4df985156ff;hp=b5d651bd457934bc9fed36ce4f818dfc8fe59e46;hpb=aa72bfe9c0d91f7339a70218aa50824e2b321780;p=jSite2.git diff --git a/src/net/pterodactylus/jsite/gui/SwingInterface.java b/src/net/pterodactylus/jsite/gui/SwingInterface.java index b5d651b..a14cd7e 100644 --- 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("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);