//this.getLoggerBeanLocal().logTrace(MessageFormat.format("PizzaLocalizationSessionBean::setLanguage: language={0} - CALLED!", language)); //NOI18N
// Language splits
- String[] splits = language.split("_");
+ String[] splits = language.split("_"); //NOI18N
if (null == splits[1]) {
- splits[1] = "";
+ splits[1] = ""; //NOI18N
}
// Get new locale with upper-case country code
<h:form id="locale_selection">
<h:selectOneMenu id="language_selection" value="#{localizationController.language}" onchange="submit()">
<f:selectItem itemLabel="#{msg.SELECT_LANGUAGE}" noSelectionOption="true" />
- <f:selectItems value="#{localizationController.selectableLocalizations}" var="l" itemValue="#{l}" itemLabel="#{msg[l.toString().toUpperCase()]}" />
+ <f:selectItems value="#{localizationController.selectableLocalizations}" var="locale" itemValue="#{locale}" itemLabel="#{msg[locale.toString().toUpperCase()]}" />
</h:selectOneMenu>
</h:form>
</ui:composition>