dev@woodstock.java.net

Re: Localization on the fly

From: mike.r.phillips <mike.r.phillips_at_comcast.net>
Date: Wed, 3 Dec 2008 09:51:52 -0800 (PST)

We are using the version of woodstock that comes in netbeans 5.5.

I just ran a test on netbeans 6.1 and you are correct the localization is
controlled by browser locale just the way
I would like.

Problem is we couldn't switch to new netbeans and woodstock because
performance was so poor. Is there
a way to get this performance from the woodstock that comes with 5.5

Is there a way to list out the woodstock version?


richard ratta wrote:
>
> What version of woodstock are you using ?
>
> The last I remember is that the locale IS determined based on browser
> locale and
> you should not have to do anything else to see this.
>
> Now the gotcha...
>
> Depending on which version of woodstock you are using you have to
> make sure that the javascript theme also reflects the localizations you
> are setting
> in "messages_de.properties.".
>
> In the later versions of woodstock, especially for components that have
> widget renderers, the javascript theme must have all the localizations
> that exist
> in properties files. This is accomplished in the build of the "theme".
>
> See
>
> http://webdev2.sun.com/woodstock-theme-doc/index.html#toc
>
> for more information on this topic.
>
> -rick
>
> mike.r.phillips wrote:
>
>>Can woodstock localization be based on the users current browser language
>>choice(request.getLocale())?
>>
>>After creating a sun/webui/jsf/suntheme/messages/messages_de.properties
>>I can only get the correct localized strings and buttons used by the
>>underlying components to be used if I add
>>a JVM option "-Duser.language=de" to the app server, or if I use
>>Locale.setDefault(choosenLocale) and then
>>re-deploy my app.
>>
>>if I use <f:view locale="<%= request.getLocale() %>"> the bundles I create
>>that are not part of
>>underlying components are localized correctly and change for each user
base
>>on browser preference.
>>
>>Is there a way to tell components to reload the localized strings without
>>bouncing app server?
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: dev-help_at_woodstock.dev.java.net
>
>
>

-- 
View this message in context: http://www.nabble.com/Localization-on-the-fly-tp20802795p20817793.html
Sent from the Project Woodstock - Dev mailing list archive at Nabble.com.