Issue Type: Improvement Created: 2008-10-22T08:33:14.000+0000 Last Updated: 2008-12-21T06:09:51.000+0000 Status: Resolved Fix version(s): - 1.7.2 (23/Dec/08)
Reporter: removed user (sandstrom) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate
Related issues: Attachments:
PROBLEM The current error message is written in a complicated way. I know it's not a priority for the ZF team to make minor adjustments to error messages there are specific reasons: 1. Since this particular validator is often added by default, at validation time, there is no easy way to modify the error message using setMessage without adding the validator to all relevant elements. 2. Furthermore it's probably the most common error message, and could deserve some extra attention because of that.
Thus the reason for a global, improved error message.
Current error message: self::IS_EMPTY => "Value is empty, but a non-empty value is required"
Suggested error message1: self::IS_EMPTY => "Required and can't be empty."
Suggested error message2: self::IS_EMPTY => "[LABEL_VALUE_HERE] is required and can't be empty."
Posted by Kristof Vansant (lupus) on 2008-11-05T13:45:39.000+0000
You must fill this in. Is maybe even more non technical :d
Posted by Thomas Weidner (thomas) on 2008-12-14T03:51:13.000+0000
The second is not possible... The label value is not given to the validator so the validator can not add the label to it's error message. And the value itself would bring nothing as it's empty.
Posted by Thomas Weidner (thomas) on 2008-12-14T03:53:58.000+0000
Changed with r13226
Have you found an issue?
See the Overview section for more details.