I just had the same error. So I digged a little into the code and I found
that the default english plural rule only support "other" and "one".
To solve the problem, I redefined DefaultRule_en.java
<http://code.google.com/p/google-web-toolkit/source/browse/releases/2.1/user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule_en.java>
to
use
DefaultRule_0_1_2_n.java<http://code.google.com/p/google-web-toolkit/source/browse/releases/2.1/user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule_0_1_2_n.java>
instead
of
DefaultRule_1_0n.java<http://code.google.com/p/google-web-toolkit/source/browse/releases/2.1/user/src/com/google/gwt/i18n/client/impl/plurals/DefaultRule_1_0n.java>
.
public class DefaultRule_en extends DefaultRule {
@Override
public PluralForm[] pluralForms() {
return DefaultRule_0_1_2_n.pluralForms();
}
@Override
public int select(int n) {
return DefaultRule_0_1_2_n.select(n);
}
}
--
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.