Re: Gwt code where locales can be changed be dynamically

2009-03-19 Thread Vitali Lovich
That is not a great way because it bypasses the whole internationalization framework of GWT for no good reason. Essentially, you're going to have to duplicate the effort to make your own for no good reason. At that point, just make RPC calls (or regular Ajax calls) to fetch the strings from the s

Re: Gwt code where locales can be changed be dynamically

2009-03-19 Thread flyingb...@gmail.com
Why dont u do redirect the google way with Window.open just use target as _self also if you really if u want to be able to change local on the fly you would need to create all the strings as variables that can get changed. Make a class an abstract while the differnet languages extends it. so t

Re: Gwt code where locales can be changed be dynamically

2009-03-19 Thread Vitali Lovich
Thanks - I tried looking for that online & couldn't find it. On Thu, Mar 19, 2009 at 12:49 PM, Thomas Broyer wrote: > > > > On 19 mar, 16:58, Vitali Lovich wrote: > > Like I said, just reload the page with locale=locale_to_use: e.g. > > > > public static native void redirect(String url)/*-{ > >

Re: Gwt code where locales can be changed be dynamically

2009-03-19 Thread Thomas Broyer
On 19 mar, 16:58, Vitali Lovich wrote: > Like I said, just reload the page with locale=locale_to_use: e.g. > > public static native void redirect(String url)/*-{ >       $wnd.location = url; >   }-*/; > > redirect("http://mydomain.com/MySuperDuperApp?locale=en_US";); Window.Location.assign("?l

Re: Gwt code where locales can be changed be dynamically

2009-03-19 Thread Vitali Lovich
Like I said, just reload the page with locale=locale_to_use: e.g. public static native void redirect(String url)/*-{ $wnd.location = url; }-*/; redirect("http://mydomain.com/MySuperDuperApp?locale=en_US";); Refer to GWT's Internalization Guide

Re: Gwt code where locales can be changed be dynamically

2009-03-19 Thread deeps
Can i pls have the code for localisation set. On Mar 19, 12:15 pm, Vitali Lovich wrote: > Best way would be to actually redirect them to your app with the > localization set.  That way, they load the app compiled for that > localization. > > The only tricky thing is maintaining persistence acro

Re: Gwt code where locales can be changed be dynamically

2009-03-19 Thread Vitali Lovich
Best way would be to actually redirect them to your app with the localization set. That way, they load the app compiled for that localization. The only tricky thing is maintaining persistence across the switch if that is important. Otherwise, there's really no way to do it the GWT-way (AFAIK).

Gwt code where locales can be changed be dynamically

2009-03-18 Thread deeps
Hi, I am trying to design a code where locales can be changed both dynamically n statically within a calendar widget like datepicker. I would be grateful if any of u helped me in this. Thank u. Regards Deepthi --~--~-~--~~~---~--~~ You received this message becau