messages plurals

2009-01-02 Thread otismo
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.aler

Re: messages plurals

2009-01-29 Thread Brandon
Is there no one who can answer Peter's question? Does the pluralization feature work at all? I've been trying to make use of it and am completely stumped. (GWT 1.5.3) -Brandon On Dec 31 2008, 6:01 pm, otismo wrote: > Can anyone tell me why this doesn't work? > > public interface TestMessage

Re: messages plurals

2009-01-29 Thread joel
I'm not sure what's wrong with Peter's code but I use pluralization with 1.5.3 with property files and it works fine. Using his examples, instead of the @DefaultMessage and @PluralText annotation, in a properties file I would have test[one] = You have 1 message test = You have {0} messages Hop