Hi, 

i experienced the same problem. Messages from the form module are always 
localized with the locale which is configured for the current user, but not 
with the locale the web-content is configured for.
So i got strange incidents where most of the webcontent was localized as 
german, but valdation messages from forms were still localized as english.
Is this behavior intended in some way. If so then my question is, why?

Cheers!

Am 24.02.2011 um 17:22 schrieb Matteo Pelucco:

> 
> Hi guys,
> I notice something strange while using the form module.
> The message "form.user.errorMessage.generic", thrown when the FormEngine find 
> errors on its path, is not localized (i18n).
> 
> The reason?
> 
> The AbstractFormEngine calls the default MessageManager, without passing any 
> locale info.
> And the MessageMenager calls the private method
> 
> private static Locale getCurrentLocale() {
>   return MgnlContext.getInstance().getLocale();
> }
> 
> (I would have called something like
> 
> private static Locale getCurrentLocale() {
>   return MgnlContext.getInstance().getAggregationState().getLocale();
> }
> )
> 
> 
> What do you think about this?
> 
> HT is a bug :-)
> cheers!
> Matteo
> 
> 
> 
> ----------------------------------------------------------------
> For list details see
> http://www.magnolia-cms.com/home/community/mailing-lists.html
> To unsubscribe, E-mail to: <[email protected]>
> ----------------------------------------------------------------
> 

-- 
altocon GmbH
Gaußstraße 190b
22765 Hamburg
Tel.: +49-40-29812097-0
Fax: +49-40-29812097-9
E-Mail: [email protected]
Web: http://www.altocon.de

Sitz der Gesellschaft: Hamburg
AG Hamburg, HRB 104131
USt.-IdNr. DE 258127045
Geschäftsführer: Michael Trowe, Lutz Hühnken



----------------------------------------------------------------
For list details see
http://www.magnolia-cms.com/home/community/mailing-lists.html
To unsubscribe, E-mail to: <[email protected]>
----------------------------------------------------------------

Reply via email to