开发者

GWT Dynamic String Internationalization

Can someone explain how to use this feature. i'm trying to search for an example on the web but not getting it. Also, i开发者_如何转开发f at run time, the user wants to change language, how to do so??


According to docs, you can

  • either specify "locale" GET parameter in your URL, for example:

    http://www.domain.com/application.html?locale=fr_CA

  • or add meta tag to your host HTML page, for example:

You may find complete internationalization example here - it uses locale get parameter approach.

As far as I understand, there's no way to change localization without GWT module re-loading (see here for details).


Both these approaches are static. But for the dynamic approach, this is very hard. Based on the current user's locale, change the ui rendering is NOT that easy...

If any

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜