I'm having problems with the plural forms in the Messages interface. I
wrote
@DefaultLocale("en")
public interface MyMessages
extends Messages {
@DefaultMessage("You got {0} things")
@PluralText( { "none", "None at all",
"one", "A single",
"two", "A pair" })
String howMany(@PluralCount int count);
but then when I try
final MyMessages myme =
GWT.create(MyMessages.class);
Window.alert(myme.howMany(0) + "/"
+ myme.howMany(1) + "/"
+ myme.howMany(2));
the result is:
You got 0 things/A single/You got 2 things
Only the "one" case got the message right; the others used the default
case. Am I missing something? What are the correct plural forms, if
that's my error? Where can I find them?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
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.