Tuesday, July 31, 2012

Re: Setting Locale language dynamically initially

Hi,

But, I don't have a server-side technology, and I don't want to have one. The whole idea is to have only client-side HTML, JavaScript, CSS.... technology and that is it. That is why I need something using JavaScript or GWT to solve the problem.

Many thanks
Rana

On Tuesday, July 31, 2012 10:32:21 AM UTC+2, Paul Robinson wrote:

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.


--
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/-/4IEuX1ivFT0J.
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