Hi
I really like Zend_Input_Filter as it quite easy and fast to write
validators. My only complain is that I have to write many custom error
messages as I am Croatian. So for example if I use EmailAddress Validator I
have to translate:
Zend_Validate_EmailAddress::INVALID
Zend_Validate_EmailAddress::INVALID_HOSTNAME
Zend_Validate_EmailAddress::INVALID_MX_RECORD
Zend_Validate_EmailAddress::DOT_ATOM
Zend_Validate_EmailAddress::QUOTED_STRING
Zend_Validate_EmailAddress::INVALID_LOCAL_PART
and
Zend_Validate_Hostname::IP_ADDRESS_NOT_ALLOWED
Zend_Validate_Hostname::UNKNOWN_TLD
Zend_Validate_Hostname::INVALID_DASH
Zend_Validate_Hostname::INVALID_HOSTNAME_SCHEMA
Zend_Validate_Hostname::UNDECIPHERABLE_TLD
Zend_Validate_Hostname::INVALID_HOSTNAME
Zend_Validate_Hostname::INVALID_LOCAL_NAME
Zend_Validate_Hostname::LOCAL_NAME_NOT_ALLOWED
As you can see that is quite lot messages to write and some of them are even
confusing and to detailed even English speaking people. Ok I can understand
that this messages are not intended for end user but it will be a nice
feature that I can set one messages ("You have entered wrong email address")
for all types of errors easily. Does this exists? If not what will be best
way to accomplish this.
Tnx
Boris
--
View this message in context:
http://www.nabble.com/Zend_Input_Filter-%28Zend_Validate%29-custom-error-messages-tf4350064s16154.html#a12394734
Sent from the Zend Framework mailing list archive at Nabble.com.