svn commit: r572322 - in /ofbiz/trunk/framework/common: src/org/ofbiz/common/CommonEvents.java webcommon/includes/listLocales.ftl

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r572322 - in /ofbiz/trunk/framework/common: src/org/ofbiz/common/CommonEvents.java webcommon/includes/listLocales.ftl

jleroux@apache.org
Author: jleroux
Date: Mon Sep  3 06:24:16 2007
New Revision: 572322

URL: http://svn.apache.org/viewvc?rev=572322&view=rev
Log:
Revert 572172 on David's advice

Modified:
    ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java
    ofbiz/trunk/framework/common/webcommon/includes/listLocales.ftl

Modified: ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java?rev=572322&r1=572321&r2=572322&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java (original)
+++ ofbiz/trunk/framework/common/src/org/ofbiz/common/CommonEvents.java Mon Sep  3 06:24:16 2007
@@ -166,7 +166,7 @@
 
     /** Simple event to set the users per-session locale setting */
     public static String setSessionLocale(HttpServletRequest request, HttpServletResponse response) {
-        String localeString = request.getParameter("newLocale");
+        String localeString = request.getParameter("locale");
         if (UtilValidate.isNotEmpty(localeString)) {
             UtilHttp.setLocale(request, localeString);
 

Modified: ofbiz/trunk/framework/common/webcommon/includes/listLocales.ftl
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/includes/listLocales.ftl?rev=572322&r1=572321&r2=572322&view=diff
==============================================================================
--- ofbiz/trunk/framework/common/webcommon/includes/listLocales.ftl (original)
+++ ofbiz/trunk/framework/common/webcommon/includes/listLocales.ftl Mon Sep  3 06:24:16 2007
@@ -50,7 +50,7 @@
         </#if>
         <tr <#if altRow>class="alternate-row"</#if>>
             <td lang="${langAttr}" dir="${langDir}">
-                <a href="<@ofbizUrl>setSessionLocale</@ofbizUrl>?newLocale=${availableLocale.toString()}">${availableLocale.getDisplayName(availableLocale)}</a>
+                <a href="<@ofbizUrl>setSessionLocale</@ofbizUrl>?locale=${availableLocale.toString()}">${availableLocale.getDisplayName(availableLocale)}</a>
             </td>
         </tr>
     </#list>