Hi,
I've some trouble with array localization.
In my software I've used this method to localize my string:
public interface MyMessages extends Messages {
String first();
String second();
}
The I've created the properties files:
#MyMessages_it.properties:
first = primo
second = secondo
#MyMessages_en.properties:
first = primo
second = secondo
Now the problem.
I've an array like that:
String fruits[] =
{
"Apple",
"Pear"
}
that I use like: " = fruits[0] "
How can I localize that?
Now I'm using a function like that:
String printFruit(int j)
{
if(j == 0)
return myMessages.apple();
else(j == 1)
return myMessages.pear();
else
return myMessages.errorString();
}
PS: Sorry for the previous messages.
--
Willy
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/google-web-toolkit/-/OYzX1Ym7uQsJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.