ZF-10051: In Zend_Translate_Adapter add option logPriority
Description
Zend_Translate_Adapter allows you to log untranslated messages if they are called, which is incredibly helpful. The trouble is that the priority level of these messages are hardcoded to the notice level. See lines 413, 426 and 799 (on 1.10.6). I would propose a logPriority option that would contain the log priority level in INT form. The lines would then be altered from
$this->_options['log']->notice("The language '{$locale}' has to be added before it can be used.");
into something like this
$this->_options['log']->log("The language '{$locale}' has to be added before it can be used.", $this->_options['logPriority ']);
Comments
Posted by Christian Riesen (christianriesen) on 2010-06-25T00:25:32.000+0000
Patch containing this proposed change
Posted by Thomas Weidner (thomas) on 2010-07-30T03:28:37.000+0000
Implemented with r22725 Patch not used, missing content