ZF-9442: Zend_Form_Decorator_Label double translates element label
Description
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
Comments
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.