I’m trying to change the language for the validation error messages in Vaadin, such as “Date is out of allowed range”, but I haven’t been able to accomplish this. I need to set this and other messages in Spanish. System messages can be overriden via getSystemMessages, but these ones cannot.
At least DateField has #setDateOutOfRangeMessage and #setParseErrorMessage.
For validators there is usually a msg field in constructor. And if you do a custom Validator you can decide what message is thrown with InvalidValueException.
The setDateOutOfRangeMessage method didn’t work. Here is a screenshot after using it.
The problem is that my application is being developed for spanish users, and I can’t use the “Out of allowed range” message. I just need it to show that message in spanish.
I don’t understand why setDateOutOfRangeMessage doesn’t work.