GWT i18n - Plural Forms doesn't work at all?

Posted by PEZ on Stack Overflow See other posts from Stack Overflow or by PEZ
Published on 2010-06-10T11:47:41Z Indexed on 2010/06/10 11:53 UTC
Read the original article Hit count: 371

Filed under:
|
|

I'm using GWT internationalization Messages. The documentation for Plural Forms says this should work:

@DefaultMessage("{0} {1,number} hours {2}")
@PluralText({"one", "an hour"})
String hours(String prefix, @PluralCount int count, String suffix);

Well, it doesn't. Whatever value of count it still delivers DefaultMessage (e.g. "1 hours ago"). Same if I use a .properties file:

hours[one]=an hour
hours[few]=some hours
hours={0} {1,number} hours {2}

Is there a bug in the docs or in GWT (I'm using GWT 2.0.3) or in me? If any of the two former, anyone knows of a workaround?

© Stack Overflow or respective owner

Related posts about gwt

Related posts about i18n