web/WEB-INF/jsp/html_full.jsp

changeset 15
bb594abac796
parent 13
f4608ad6c947
child 24
8137ec335416
--- a/web/WEB-INF/jsp/html_full.jsp	Tue Dec 26 19:18:32 2017 +0100
+++ b/web/WEB-INF/jsp/html_full.jsp	Tue Dec 26 19:45:31 2017 +0100
@@ -42,6 +42,11 @@
 <%-- Define an alias for the module info --%>
 <c:set scope="page" var="moduleInfo" value="${requestScope[Constants.REQ_ATTR_MODULE_INFO]}"/>
 
+<%-- Apply the session locale (should always be present, but check nevertheless) --%>
+<c:if test="${not empty sessionScope[Constants.SESSION_ATTR_LANGUAGE]}">
+<fmt:setLocale scope="request" value="${sessionScope[Constants.SESSION_ATTR_LANGUAGE]}"/>
+</c:if>
+
 <!DOCTYPE html>
 <html>
     <head>
@@ -78,7 +83,8 @@
         </div>
         <div id="content-area">
             <c:if test="${not empty fragment}">
-            <c:import url="${fragment}" />
+                <fmt:setBundle scope="request" basename="${moduleInfo.bundleBaseName}"/>
+                <c:import url="${fragment}" />
             </c:if>
         </div>
     </body>

mercurial