Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 0.6-RC1
-
Component/s: None
-
Labels:None
Description
the lang parameter only set the locale per request. cookie must be set also for locale change to be persistent for the session
Need to change I18nGrailsPlugin.groovy. Add cookieName = "lang" as follows at end of doWithSpring closure:
localeResolver(CookieLocaleResolver) { cookieName = "lang" }
The suggested fix requires you to directly manipulate the lang cookie.
CookieLocaleResolver is not working properly. Change to SessionLocaleResolver. works as expected.
SessionLocaleResolver can be configured in spring/resources.xml or this plugin can be changed to use the SessionLocaleResolver instead of the CookieLocaleResolver