ZF-5954: Log which translation has the Untranslated message

Issue Type: Improvement Created: 2009-03-06T02:43:47.000+0000 Last Updated: 2009-03-07T14:31:25.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Kristoffer Wiklund (koffe) Assignee: Thomas Weidner (thomas) Tags: - Zend_Translate

Related issues: Attachments:


In the trunk version you have the Log options for the Translation adapter. But then you have have a missing translation it does says which locale has the untranslated message.

My recomended patch is:

Zend/Translate/Adapter.php, row 522 ->

Orginal: if ($this->_options['logUntranslated']) { if ($this->_options['log']) { $this->_options['log']->notice('Untranslated message: ' . $messageId); } else { trigger_error('Untranslated message: ' . $messageId, E_USER_NOTICE); } }

Improvements: if ($this->_options['logUntranslated']) { if ($this->_options['log']) { $this->_options['log']->notice('Untranslated message for '. $locale .': ' . $messageId); } else { trigger_error('Untranslated message for '. $locale .': ' . $messageId, E_USER_NOTICE); } }


Posted by Thomas Weidner (thomas) on 2009-03-07T14:30:15.000+0000

Improvement was added as part of another improvement with r14245

Have you found an issue?

See the Overview section for more details.


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

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