Sunday, September 5, 2010

Re: Internationalizing Gadget

nvm i figure that out

@ModulePrefs(title = "title",
author="NoBody",
author_email="NoB...@somewhere.com",
height=600,locales={

@com.google.gwt.gadgets.client.Gadget.GadgetLocale(lang="ja",messages="http://
www.somewhere.com/locales/ja_ALL.xml"),

@com.google.gwt.gadgets.client.Gadget.GadgetLocale(lang="en",messages="testURL")}))

On Sep 6, 12:02 pm, Alex <monsterno...@gmail.com> wrote:
> i saw this post onhttp://groups.google.com/group/google-web-toolkit/browse_thread/threa...
> where it say added support for gadget locale setting
>
> andhttp://gwt-google-apis.googlecode.com/svn/javadoc/gadgets/1.2/index.html
>
> in particular the method public abstract Gadget.GadgetLocale[] locales
>
> how do i use that?
>
> i want all the UI string on my gadget to changed according to a drop
> down list where user can select the language
>
> i try @ModulePrefs(title = "title",
>                 author="NoBody",
>                 author_email="NoB...@somewhere.com",
>                 height=600,locales=what to put here?)
>
> so how do i specify the locales?
>
> and how do i do stuff mentioned inhttp://code.google.com/apis/gadgets/docs/i18n.html

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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