I able to use LocalizedResource.properties with uibinder. let say i have widget that created programmatically in java file. how to read in key from LocalizedResource.properties depending on language “en,fr..etc” selected by users?
I able to use LocalizedResource.properties with uibinder. let say i have widget that created
Share
It’s difficult to say something definitely.
If your LocalizedResource.properties is generated as described by “Internationalization – UiBinder” so I don’t understand why you want to read in key from it
If .properties made for Message or Constant interface so you could read *fr_CA.properties by http://*.html?locale=fr_CA and so for any languge you want.
Helpful link is Internationalizing GWT: Creating the translation for each language supported
or try @UiTemplate to switch between tamplates prepared for different languages. To find out current locale you can use
LocaleInfo.getLocaleName().Helpful link is Apply different XML templates to the same widget