src/java/de/uapcore/lightpit/AbstractLightPITServlet.java

changeset 15
bb594abac796
parent 14
2b270c714678
child 17
d1036b776eee
--- a/src/java/de/uapcore/lightpit/AbstractLightPITServlet.java	Tue Dec 26 19:18:32 2017 +0100
+++ b/src/java/de/uapcore/lightpit/AbstractLightPITServlet.java	Tue Dec 26 19:45:31 2017 +0100
@@ -243,7 +243,9 @@
             session.setAttribute(Constants.SESSION_ATTR_LANGUAGE, sessionLocale);
             LOG.debug("Settng language for new session {}: {}", session.getId(), sessionLocale.getDisplayLanguage());
         } else {
-            LOG.trace("Continuing session {} with language {}", session.getId(), session.getAttribute(Constants.SESSION_ATTR_LANGUAGE));
+            Locale sessionLocale = (Locale) session.getAttribute(Constants.SESSION_ATTR_LANGUAGE);
+            resp.setLocale(sessionLocale);
+            LOG.trace("Continuing session {} with language {}", session.getId(), sessionLocale);
         }
         
         req.setAttribute(Constants.REQ_ATTR_PATH, Functions.fullPath(req));

mercurial