gwt 18n properties files
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.
精彩评论