Hi Carsten,
how did you check what the default locale is?
What is the result of facesContext.getApplication().getDefaultLocale() ?
The parsing of the locale-config is part of the jsf implementation,
not of tobago.
I don't think you should repeat the default-locale at the supported-locales,
and i think its more a config error than a bug if you add one locale
multiple times to the config.
Regards,
Volker
2007/6/11, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
Hi,
I changed the locale entries in my faces-config.xml as follows, but the default
language is still german and not english:
<application>
<locale-config>
<default-locale>en</default-locale>
<supported-locale>en</supported-locale>
<supported-locale>de</supported-locale>
</locale-config>
</application>
And there are three entries in my language configuration menu, two for english
and one for german. Maybe there's a bug?
Best regards,
Carsten Manshusen
-----Original Message-----
From: Zdeněk Sochor [mailto:[EMAIL PROTECTED]
Sent: Monday, June 11, 2007 5:24 PM
To: MyFaces Discussion
Subject: Re: [Tobago] Default language
Hi,
Default locale has to be in supported locales list to be selectable.
With regards,
Zdenek
[EMAIL PROTECTED] napsal(a):
>
> How can I change the default language of my Tobago application to
> english? My locale entries in the faces-config.xml looks like this:
>
> <application>
> <locale-config>
> <default-locale>en</default-locale>
>
<supported-locale>en</supported-locale>
>
> <supported-locale>de</supported-locale>
> </locale-config>
> </application>
>
> When I start my application, always the german locale will be used as
> default for the property file.
>
> Best regards,
> Carsten Manshusen
>