Issues

ZF-10336: Zend_Form translate twice

Issue Type: Bug Created: 2010-08-18T15:33:59.000+0000 Last Updated: 2010-10-26T00:46:04.000+0000 Status: Resolved Fix version(s): Reporter: Alex (bagir) Assignee: Christian Albrecht (alab) Tags: - Zend_Form

Related issues: - ZF-10066

Attachments:

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

Posted by Kai Uwe (kaiuwe) on 2010-08-19T01:09:49.000+0000

Please look at [ZF-10066]

Have you found an issue?

See the Overview section for more details.

Copyright

© 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.

Contacts