ZF-10051: In Zend_Translate_Adapter add option logPriority

Issue Type: New Feature Created: 2010-06-25T00:16:21.000+0000 Last Updated: 2010-07-30T03:29:14.000+0000 Status: Resolved Fix version(s): - 1.11.0 (02/Nov/10)

Reporter: Christian Riesen (christianriesen) Assignee: Thomas Weidner (thomas) Tags: - Zend_Translate

Related issues: Attachments: - translate-log.patch


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

<pre class="highlight">
$this->_options['log']->notice("The language '{$locale}' has to be added before it can be used.");

into something like this

<pre class="highlight">
$this->_options['log']->log("The language '{$locale}' has to be added before it can be used.", $this->_options['logPriority ']);


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

Have you found an issue?

See the Overview section for more details.


© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.