« Return to Thread: Localization on the fly

Re: Localization on the fly

by richard ratta :: Rate this Message:

Reply to Author | View in Thread


mike.r.phillips wrote:

> Yes, Here is the answer if you are using woodstock 4.0 and netbeans 5.5.
> You must set the locales you want to support in both
> faces_config.xml
>   <application>
>     <locale-config>
>        <supported-locale>en</supported-locale>
>        <supported-locale>de</supported-locale>
>      </locale-config>
>   </application>
>  
And the web.xml part is no longer necessary in later versions.

> and web.xml
>   <context-param>
>     <param-name>com.sun.webui.theme.SUPPORTED_LOCALES</param-name>
>     <param-value>en,de</param-value>
>   </context-param>
>
> With this, when you set your language to german or english in your browser,
> the web app shows either localized version
>  

-rick

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: Localization on the fly