Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.3.7
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:grails 1.3.7, jvm 1.6.24, kubuntu 10.04.2 LTS
Description
Switching the language with the lang parameter does not work on the landing page.
It simply picks up the browsers language setting.
I attached a simple sample project including a index.gsp with a simple second header.
<h1><g:message code="app.welcome.label" default="Welcome to the app"/></h1>
and the corresponding bundle entries in german and default.
Attachments
Issue Links
| This issue duplicates: | ||||
| GRAILS-3871 | the lang request parameter may not be working |
|
|
|
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Even if this is flagged as a duplicate of
GRAILS-3871, there are many more details inGRAILS-3871, including suggestions for documentation.In my case, the default locale of the system where the server is running is not English. In that case, there is no way to get the English version using ?lang=en from the browser (and whatever the browser settings are).
To fix that, I had to copy (or link) messages.properties to messages_en.properties
It should also be mentioned that you need to repeat this if you need, for example, en_US to work too.
I'm using 1.3.7 as well.
GRAILS-3871, there are many more details inGRAILS-3871, including suggestions for documentation. In my case, the default locale of the system where the server is running is not English. In that case, there is no way to get the English version using ?lang=en from the browser (and whatever the browser settings are). To fix that, I had to copy (or link) messages.properties to messages_en.properties It should also be mentioned that you need to repeat this if you need, for example, en_US to work too. I'm using 1.3.7 as well.