« Return to Thread: Localization on the fly
Yes.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 localization behavior 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 userbaseon browser preference. Is there a way to tell components to reload the localized strings without bouncing app server?--------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@... For additional commands, e-mail: dev-help@...
« Return to Thread: Localization on the fly
| Free embeddable forum powered by Nabble | Forum Help |