]> git.mxchange.org Git - addressbook-war.git/blobdiff - web/WEB-INF/templates/base.tpl
It must be a writable property and the class Locale doesn't have it (language)
[addressbook-war.git] / web / WEB-INF / templates / base.tpl
index 74115a03ae18c60b9e393337b73f57cacc375103..3b6ccd29f3701e96b49dd6573155c5b72dc0efd6 100644 (file)
@@ -1,5 +1,6 @@
 <?xml version="1.0" encoding="UTF-8" ?>
 <html
+       lang="#{localization.language}" xml:lang="#{localization.language}"
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:ui="http://java.sun.com/jsf/facelets"
@@ -9,6 +10,7 @@
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 
                <f:loadBundle var="msg" basename="org.mxchange.localization.bundle" />
+               <f:view locale="#{localization.locale}" />
 
                <h:outputStylesheet name="/css/default.css" />
                <h:outputStylesheet name="/css/cssLayout.css" />
@@ -28,6 +30,7 @@
                <div id="menu_content">
                        <div id="left">
                                <ui:insert name="menu">Default menu</ui:insert>
+                               <ui:include src="/WEB-INF/templates/generic/locale_selection_box.tpl" />
                        </div>
 
                        <div id="content_outer" class="left_content">