]> git.mxchange.org Git - pizzaservice-war.git/commitdiff
no shortening
authorRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 14:11:32 +0000 (16:11 +0200)
committerRoland Haeder <roland@mxchange.org>
Sun, 10 Apr 2016 14:11:32 +0000 (16:11 +0200)
src/java/org/mxchange/pizzaapplication/beans/localization/PizzaLocalizationSessionBean.java
web/WEB-INF/templates/generic/locale_selection_box.tpl

index 8df94172cafcf23bcef002c0576cb5984dcfbf87..b6b67c499796e74a2d0777dd338c530283ce7b23 100644 (file)
@@ -57,9 +57,9 @@ public class PizzaLocalizationSessionBean extends BaseDatabaseBean implements Pi
                //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
index 2d81840d305ad0bd36f3501a7db05f78e74130aa..5e6a9cf2cf73a87dbd5dc4c5308d4d58629ed6b7 100644 (file)
@@ -8,7 +8,7 @@
        <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>