Hi all,
I just wanted to let you all know I have added new translation
functionality to Zend_Form buttons: Submit, Reset, Button and Image.
The title attribute is now translated automatically if you have a
translator on your form (or registered in Zend_Registry with key
'Zend_Translate', of course).
This means you can now have translated tooltips on your form buttons
without having to translate those manually by passing in the translated
value of the title attribute yourself.
This is accomplished by the new Zend_Form_Decorator_Tooltip that does
nothing but translate the title attribute before rendering the button.
This decorator is loaded as the first decorator in loadDefalutDecorators
inside Zend_Form_Element_Submit and Zend_Form_Element_Image. Reset and
Button inherit from Submit.
Since I have no experience with updating the manual and little English
writing skills, I would appreciate it if anyone would care to update the
manual accordingly.
Note that if you replace all the decorators by calling setDecorators(),
your tooltips will only get translated if you add the tooltip decorator
as the first decorator.
Bart McLeod