Java Reference
In-Depth Information
<<interface>>
Message
<<interface>>
ValidationError
SimpleMessage
SimpleError
LocalizableMessage
LocalizableError
ScopedLocalizableError
Figure 11.2: The Stripes message classes
Download email_20/res/StripesResources_fr.properties
validation.required.valueNotPresent={0} est un champ requis
contact.lastName.valueTooShort=\
Le nom de famille doit avoir au moins {2} caract\u00e8res.
contact.birthDate.invalidDate=La date de naissance n''est pas valide.
contact.birthDate.valueFailedExpression=\
La date de naissance est dans le futur.
That funny \u00e8 sequence in the French text is a Unicode escape.
Java . properties files allow only the ISO8859-1 character encoding, but
you can get Unicode characters using \unnnn , where nnnn is the hex-
adecimal value of the character. For example, \u00e8 represents the è
character. You'll find a chart of Unicode characters at http://mindprod.
com/jgloss/ascii.html .
That's great for all the error messages that are generated automatically,
but what about the ones that we created ourselves?
 
 
Search WWH ::




Custom Search