]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/WEB-INF/templates/generic/locale_selection_box.tpl
Please cherry-pick:
[pizzaservice-war.git] / web / WEB-INF / templates / generic / locale_selection_box.tpl
index 0dc84df9a9adc768c6d163468909437b31ff730b..303a52602d6bc21c77cdf2ad04f9e748ac54f7c0 100644 (file)
@@ -3,12 +3,12 @@
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:h="http://java.sun.com/jsf/html"
-       xmlns:ui="http://java.sun.com/jsf/facelets">
+       xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
 
-       <h:form id="locale_selection">
-               <h:selectOneMenu value="#{localization.locale.language}" onchange="submit()">
-                       <f:selectItem itemValue="de" itemLabel="Deutsch" />
-                       <f:selectItem itemValue="en" itemLabel="English" />
+       <h:form id="form_locale_selection">
+               <h:selectOneMenu id="language_selection" styleClass="select" value="#{localizationController.language}" onchange="submit()">
+                       <f:selectItem itemLabel="#{msg.SELECT_LANGUAGE}" noSelectionOption="true" />
+                       <f:selectItems value="#{localizationController.selectableLocalizations}" var="locale" itemValue="#{locale}" itemLabel="#{msg[locale.toString().toUpperCase()]}" />
                </h:selectOneMenu>
        </h:form>
 </ui:composition>