You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Mark Breman <m....@minihouse.com> on 2006/10/30 13:22:55 UTC

t:selectOneCountry and i18n question.

Hi everyone,

 

I'm trying to get the t:selectOneCountry component to display a list of
countries in my native language (dutch).

 

The taglib docs say that this component uses the java.util.Locale (and
getCountry) API. The dutch locale (nl_NL) is fully supported by JDK 1.5 and
I have set my browser-language to nl.

In my web.xml I have configured

 

    <locale-config>

      <default-locale>nl</default-locale>

        <supported-locale>nl</supported-locale>

        <supported-locale>en</supported-locale>

    </locale-config>

 

I'm using Tomcat 5.5.17.

 

I'm keep on getting a list of countries in english, not in dutch. Only my
local country in the list is displayed in dutch (i.e. 'Nederland' instead of
'Netherlands')?!?

  

Does anyone know what I'm doing wrong here?

 

Any help appreciated.

 

Thanx.

 

-Mark-

 


Re: selectOneCountry and i18n question.

Posted by Mick Knutson <mi...@gmail.com>.
Now that I got to this, I want to have my application default to use en_US
and United States for the Country pull down.

I have this in my faces-config.xml:

    <application>
        <locale-config>
            <default-locale>en_US</default-locale>
            <supported-locale>en</supported-locale>
            <supported-locale>es</supported-locale>
            <supported-locale>de</supported-locale>
        </locale-config>


        <message-bundle>messages</message-bundle>
    </application>



And this in my web.xml:

   <locale-encoding-mapping-list>
        <locale-encoding-mapping>
            <locale>en_US</locale>
            <locale>en</locale>
            <locale>es</locale>
            <locale>de</locale>
        </locale-encoding-mapping>
    </locale-encoding-mapping-list>



and it does not default to United States, it is still alphabetical




On 11/2/06, Mark Breman <m....@minihouse.com> wrote:
>
>
>
> No one?
>
>
>
>
>
> -----Oorspronkelijk bericht-----
> *Van:* Mark Breman [mailto:m.breman@minihouse.com]
> *Verzonden:* maandag 30 oktober 2006 13:23
> *Aan:* users@myfaces.apache.org
> *Onderwerp:* t:selectOneCountry and i18n question.
>
>
>
> Hi everyone,
>
>
>
> I'm trying to get the t:selectOneCountry component to display a list of
> countries in my native language (dutch).
>
>
>
> The taglib docs say that this component uses the java.util.Locale (and
> getCountry) API. The dutch locale (nl_NL) is fully supported by JDK 1.5and I have set my browser-language to nl.
>
> In my web.xml I have configured
>
>
>
>     <locale-config>
>
>       <default-locale>nl</default-locale>
>
>         <supported-locale>nl</supported-locale>
>
>         <supported-locale>en</supported-locale>
>
>     </locale-config>
>
>
>
> I'm using Tomcat 5.5.17.
>
>
>
> I'm keep on getting a list of countries in english, not in dutch. Only my
> local country in the list is displayed in dutch (i.e. 'Nederland' instead
> of 'Netherlands')?!?
>
>
>
> Does anyone know what I'm doing wrong here?
>
>
>
> Any help appreciated.
>
>
>
> Thanx.
>
>
>
> -Mark-
>
>
>



-- 

Thanks

DJ MICK
http://www.djmick.com
http://www.myspace.com/mickknutson

RE: selectOneCountry and i18n question.

Posted by Mark Breman <m....@minihouse.com>.
 

No one?

 

 

-----Oorspronkelijk bericht-----
Van: Mark Breman [mailto:m.breman@minihouse.com] 
Verzonden: maandag 30 oktober 2006 13:23
Aan: users@myfaces.apache.org
Onderwerp: t:selectOneCountry and i18n question.

 

Hi everyone,

 

I'm trying to get the t:selectOneCountry component to display a list of
countries in my native language (dutch).

 

The taglib docs say that this component uses the java.util.Locale (and
getCountry) API. The dutch locale (nl_NL) is fully supported by JDK 1.5 and
I have set my browser-language to nl.

In my web.xml I have configured

 

    <locale-config>

      <default-locale>nl</default-locale>

        <supported-locale>nl</supported-locale>

        <supported-locale>en</supported-locale>

    </locale-config>

 

I'm using Tomcat 5.5.17.

 

I'm keep on getting a list of countries in english, not in dutch. Only my
local country in the list is displayed in dutch (i.e. 'Nederland' instead of
'Netherlands')?!?

  

Does anyone know what I'm doing wrong here?

 

Any help appreciated.

 

Thanx.

 

-Mark-