[opencms-dev] locale property - problem in 7.5.0 (7.0.5 also)

Stephan Hartmann hartmann at metamesh.de
Tue Sep 8 17:45:33 CEST 2009


Christoph,

JSP Expression Language notation uses a $, not a %.
Replace this line:

<fmt:setLocale value="%{locale}"/>

with this:

<fmt:setLocale value="${locale}"/>

Otherwise the JSP container will pass in the string "%{locale}" to the 
value attribute of the setLocale tag.

Regards,
Stephan

Christoph P. Kukulies schrieb:
> On Tue, Sep 08, 2009 at 04:31:46PM +0200, Christoph P. Kukulies wrote:
>   
>> On Tue, Sep 08, 2009 at 03:53:09PM +0200, Christoph P. Kukulies wrote:
>>     
>>> I must refine the center of the error a bit. See below between the
>>> lines:
>>>
>>> Only the wrong message is chosen. So the setLocale which is done in the
>>> head template doesn't have any effect to the message bundle.
>>>
>>>       
>> Me again: Solved it!
>>     
>
> Sorry, not solved :-(
>
> The messages do not switch. Now I have messages_de.properties as the
> default and everytime. No language switching takes place.
>
> What am I overlooking?
>
>
> --
> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>   
>> 1. messages.properties were not a sibling of one of
>>    messages_de.properties resp. messages_en.properties
>>
>> 2. export was not set to true
>>
>> 3. tomcat has not been restarted
>>
>> One, two or all three of the above have been the culprit. :-)
>>
>>
>> --
>> Chris Christoph P. U. Kukulies kukulies (at) rwth-aachen.de
>>     
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>   




More information about the opencms-dev mailing list