Hi Dennis,
i think you have to provide all supported locales in your faces-conig :
Probably the english one is the default locale, if there is no such config.
<faces-config>
<application>
<locale-config>
<default-locale>de</default-locale>
<supported-locale>de</supported-locale>
<supported-locale>en</supported-locale>
<supported-locale>ru</supported-locale>
</locale-config>
<message-bundle>errors</message-bundle>
</application>
[...]
</faces-config>
regards
Ronald
Dennis Klemann wrote:
Hi there,
I recently implemented a website using JSF and MyFaces. Almost
everything works fine now. The one thing that doesn't:
The messages that appear when e.g. a required text field hasn't been
filled all come from the "en" message bundle, although the browser has
another language setting (e.g. "de"). For now, I renamed the "de"
message bundle to "en", but I see it as a temporary solution only.
Shouldn't the language setting depend on the browser preferences? Or is
there another way to choose the language?
I've posted this problem to the JIRA, but got forwarded to this mailing
list:
http://issues.apache.org/jira/browse/MYFACES-1380
Kind regard,
Dennis
--
*********************************************************
*M-Unicomp GmbH
*
*Dipl.-Ing. Ronald Müller
*Softwareentwicklung
*
*Plauener Straße 163-165, Haus 11
*13053 Berlin
*
*fon : +49 ( 0 ) 30 / 98 69 61 54
*mobil : +49 ( 0 ) 172 / 93 95 00 4
*fax : +49 ( 0 ) 30 / 98 69 61 55
*email : [EMAIL PROTECTED]
*web : www.unicomp-berlin.de
********************************************************