ZF-10336: Zend_Form translate twice

Description

With using Zend_Translate Zend_Registry::set('Zend_Translate', $translate);

first translation in /Zend/Form/Element.php in getLabel method second in /Zend/Form/Decorator/Label.php in getLabel method

$label = $element->getLabel(); //First translation $label = trim($label);

if (empty($label)) { return ''; }

if (null !== ($translator = $element->getTranslator())) { $label = $translator->translate($label); //Second translation (remove this code) }

Comments

Please look at [ZF-10066]