Hi,
I think you could use plural forms to do that (see GWT documentation on i18n). I'm using a bit simpler way:
public interfce MyMessage extends Messages
{
MyMessages INST = GWT.create(MyMessages.class);
String[] TEXTS = {INST.text1(), INST.text2()};
String tetx1();
String text2();
}
Hope it helps.
Honza
Dne pátek, 21. září 2012 16:02:45 UTC+2 Willy napsal(a):
Hi all,
I'm quite new to GWT world and I've some issues.
In this post I ask for help with localization.
I've used an interface that extends Messages, like that:
...
public interface MyMessages extends Messages {
String text1();
String text2();
String text3();
}
...
and so far works all properly.
Problems born when I try to localize an array of strings like that:
static String[] status =
{
"READY",
"UNREADY"
}
that I use in this way:
btn.setText(status[0]);
There is a standard way to localize an array strings?
Thanks a lot,
willy