I would like to attach a translate instance with the log option to
Zend_Validator in order to intercept all untranslated error message, however
if I save a Zend_Translate(_Adapter) instance for the validators with the
code below, the log works for the message foo and bar, but when I call a
form with some validators their error messages aren't logged to the file.

Does Zend_Validate remove in some way the log option from the translate? I
read some code, but I don't find anything regarding this.

In my bootstrap I have the following code:

                // translator
                $translate = new Zend_Translate('gettext', 
                                APPLICATION_PATH . '/var/lang/validate', 
'auto', 
                                array (
                                                'scan' => 
Zend_Translate::LOCALE_FILENAME, 
                                                'log' => $log, // instance of 
Zend_Log 
                                                'logUntranslated' => true));
                $translate->_('foo');
                Zend_Validate_Abstract::setDefaultTranslator($translate);
                $translate->_('bar');

Now if I call a form with errors, the messages are translated using my
translator, but for the messages without translation I don't find any log
message (while I still have the foo and the bar lines)

Should I file a bug report?

-- 
View this message in context: 
http://n4.nabble.com/Validators-doesn-t-log-messages-when-used-with-Zend-Validate-Abstract-setDefaultTranslator-tp1755821p1755821.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to