Can anyone tell me why this doesn't work?

public interface TestMessages extends Messages {
    @DefaultMessage("You have {0} messages")
    @PluralText( { "one", "You have 1 message" })
    String test(@PluralCount int count);
}

TestMessages messages = GWT.create(TestMessages.class);
Window.alert(messages.test(1));

The call to messages.test(1) returns: "You have 1 messages".  I
expected it to return the singular "You have 1 message" specified in
@PluralText.

I'm using gwt 1.5.3.

Am I doing something wrong?

Thanks,
Peter

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to