Wednesday, July 4, 2012

Setting Locale language dynamically initially

Hi,

I know that you could initially set a language as a default one using the module file in GWT like this:

<set-property name="locale" value="en"/>

However, I need to display my application initially, in the language the user-agent's is using, i.e. depending on the Geographical IP of the user. Currently I am able to get the language and the country from which the user is connecting.
I thought of changing the locale through a query parameter (in the URL), but I don't like this idea because it reloads the page. Is there any other way to change the locale while launching the application dynamically?

Many thanks in advance
Rana

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/-EcCc_iNqLIJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment