Tuesday, July 31, 2012

Re: Setting Locale language dynamically initially

On 31/07/12 09:24, Rana wrote:
Hello Jens,

But, what if I don't want to use neither JSP nor PHP. Is there a way of doing it using GWT, or JavaScript?
That'll be the "whatever" in Jens' email. You can generate a host html page with whatever server-side technology you're using. If you have a java server, then you can create a servlet that handles your host page and generates it.

On Wednesday, July 4, 2012 11:40:21 AM UTC+2, Jens wrote:
You could build your app's host html page dynamically (jsp, php, whatever) and add a <meta> property to the <head> as described in https://developers.google.com/web-toolkit/doc/latest/DevGuideI18nLocale#LocaleSpecifying

That way your app loads directly the specified language if its available, otherwise it loads the default language.

-- J.

No comments:

Post a Comment