ZF-2568: No %value% substitution in translated validation messages
Description
If a translator is used, Zend_Form_Decorator_Errors passes %value% (and additional message variables) subtitution in validation messages.
If a translator is used, Zend_Form_Decorator_Errors passes %value% (and additional message variables) subtitution in validation messages.
Comments
Posted by Arnaud DIDRY (adidry) on 2008-02-06T19:39:45.000+0000
I encountered the same problem trying to translate errors messages. I found that the translation were done in Zend_Form_Decorator_Errors, after that each error message were processed by the function Zend_Validate_Abstract::_createMessage
Maybe that the translator should be passed to each validator to create localized validators
Posted by Matthew Weier O'Phinney (matthew) on 2008-02-07T15:59:20.000+0000
Available as of r7854 (make sure you update both incubator and core). Translations are now possible globally for all validators extending Zend_Validate_Abstract, which affects Zend_Validate, Zend_Form, and Zend_Filter_Input. This change also allows for variable substitution in messages.