Re: How to find correctly the client's locale?

2010-07-20 Thread Sorinel C
@Glimpse Thank you for the idea. I've tried myself something similar, but getting the request header Accept-Language and I get the browser language ... but this isn't exactly what I want ... For example, I have set my systems locale to France, but the browser (FF Chrome) have English previously

Re: How to find correctly the client's locale?

2010-07-19 Thread Sorinel C
I have in my module .gwt.xml file definition the following lines: inherits name=com.google.gwt.core.Core / inherits name=com.google.gwt.user.User / inherits name=com.google.gwt.i18n.I18N / inherits name=com.google.gwt.i18n.CldrLocales / inherits

Re: How to find correctly the client's locale?

2010-07-19 Thread olivier nouguier
Hi, Don't much about recent GWT version. But I the beginning of GWT I18N a simple solution was to use the I18N resolution ... Simply provide in a key locale( ex: locale=en ) with the correct value in each bundle, then just bind this key like another i18n label and you're done ... HIH On

Re: How to find correctly the client's locale?

2010-07-19 Thread Glimpse
I've renamed my index.html to index.jsp and I've added the following line in the head/ section: meta name=gwt:property content=locale=%=request.getLocale()% My application now uses the preferred language defined in the browser's settings. This works fine! On 19 juil, 10:24, Sorinel C

Re: How to find correctly the client's locale?

2010-07-19 Thread Stefan Bachert
Hi, the startup code detects the locale. As documented in stockwatcher demo, you could either supply a locale in the url (query parameter) or put it into host page as a fixed value Stefan Bachert http://gwtworld.de On 19 Jul., 10:19, Sorinel C scristescu...@hotmail.com wrote: I have used the