Zend Framework

Log which translation has the Untranslated message

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.7.7
  • Fix Version/s: 1.8.0
  • Component/s: Zend_Translate
  • Labels:
    None

Description

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); }
}

Activity

Hide
Thomas Weidner added a comment -

Improvement was added as part of another improvement with r14245

Show
Thomas Weidner added a comment - Improvement was added as part of another improvement with r14245

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: