Author: mrisaliti
Date: Sat Sep 27 13:22:39 2008
New Revision: 699728
URL:
http://svn.apache.org/viewvc?rev=699728&view=revLog:
Change of language was not working, it was missing a request.
Modified:
ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/controller.xml
ofbiz/trunk/specialpurpose/webpos/webapp/webpos/includes/Language.ftl
Modified: ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/controller.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/controller.xml?rev=699728&r1=699727&r2=699728&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/controller.xml (original)
+++ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/WEB-INF/controller.xml Sat Sep 27 13:22:39 2008
@@ -127,6 +127,13 @@
<response name="error" type="view" value="main"/>
</request-map>
+ <request-map uri="SetSessionLocale">
+ <security https="false" auth="false"/>
+ <event type="java" path="org.ofbiz.common.CommonEvents" invoke="setSessionLocale"/>
+ <response name="success" type="view" value="main"/>
+ <response name="error" type="view" value="main"/>
+ </request-map>
+
<request-map uri="Manager">
<security https="true" auth="true"/>
<response name="success" type="view" value="Manager"/>
Modified: ofbiz/trunk/specialpurpose/webpos/webapp/webpos/includes/Language.ftl
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/webpos/webapp/webpos/includes/Language.ftl?rev=699728&r1=699727&r2=699728&view=diff==============================================================================
--- ofbiz/trunk/specialpurpose/webpos/webapp/webpos/includes/Language.ftl (original)
+++ ofbiz/trunk/specialpurpose/webpos/webapp/webpos/includes/Language.ftl Sat Sep 27 13:22:39 2008
@@ -22,7 +22,7 @@
<h3>${uiLabelMap.CommonLanguageTitle}</h3>
</div>
<div class="screenlet-body" style="text-align: center;">
- <form method="post" name="chooseLanguage" action="<@ofbizUrl>setSessionLocale</@ofbizUrl>" style="margin: 0;">
+ <form method="post" name="chooseLanguage" action="<@ofbizUrl>SetSessionLocale</@ofbizUrl>" style="margin: 0;">
<select name="newLocale" style="width:95%" onchange="submit()">
<#assign availableLocales = Static["org.ofbiz.base.util.UtilMisc"].availableLocales()/>
<#list availableLocales as availableLocale>