开发者

gwt 18n properties files

开发者 https://www.devze.com 2023-02-09 03:27 出处:网络
i have LocalizableResource_lang.properties located at com.google.gwt.client . using uibinder<ui.msg: i able to get the

i have LocalizableResource_lang.properties located at com.google.gwt.client . using uibinder <ui.msg: i able to get the i18n messages. let say i programmatically creating w开发者_StackOverflow中文版idget. and created interface LocalizableResource extends Message in order to read in 18n messages. Is this correct proper way to do it?


Create your interface that extends from com.google.gwt.i18n.client.Messages, and add your various MyMessages_(en_US|fr_CA).properties files in the same folder. Use GWT.create(MyMessages.class) to create the instance.

See i18n dev guide for more details.

0

精彩评论

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