ZF-9442: Zend_Form_Decorator_Label double translates element label

Issue Type: Sub-task Created: 2010-03-17T09:44:10.000+0000 Last Updated: 2011-12-01T12:33:09.000+0000 Status: Closed Fix version(s): Reporter: Steve Lounsbury (stephenminded) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: - ZF-8694

Attachments: - zf-9422-unittest.patch


Related to ZF-6877

Zend_Form_Element::getLabel() will now translate the label (from ZF-6877); however, Zend_Form_Decorator_Label will also translate the label which causes a double-translation and some odd side effects.

For instance: if you are using an adapter which marks un-translated strings by pre-pending and appending the messageId with a recognizable string, the string will be marked twice (see unit test).

I will attach a patch which adds a unit test to demonstrate the issue. Also attached patch which fixes the label decorator and passes unit test. Patch is against svn trunk@21533


Posted by Steve Lounsbury (stephenminded) on 2010-03-17T09:50:26.000+0000

Unit test and label decorator patch attached.

Posted by Adam Lundrigan (adamlundrigan) on 2011-12-01T12:33:09.000+0000

Duplicates ZF-8694. A fix has been proposed there.

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.