开发者

GWT Dynamic String Internationalization

开发者 https://www.devze.com 2023-02-05 16:35 出处:网络
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?

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

精彩评论

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

关注公众号