Thursday, June 16, 2011

Re: Plural forms and I18NCreator

This is not supported.  The problem is the information simply isn't there to convert from the properties file to the fully typed Java interface without adding some convention for comments specifying that information -- if you are going to do that, you might as well just write the Java code.

For example:

msg=They gave you a widget.
msg[FEMALE]=She gave you a widget.
msg[MALE]=He gave you a widget.

How are you supposed to get the type of the @Select parameter (assuming you infer it)?  It could be a String or an Enum, and if an Enum which one should you use?

How do you get the argument names or types?  Ie:

msg=Your total is {0}

Is argument 0 an int, double, BigDecimal, or something else?

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/k8SaGpBaVGAJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate