[html-formfu] label,legend localizing problem

Carl Franks fireartist at gmail.com
Wed Jul 18 21:48:49 GMT 2007


On 17/07/07, Carl Franks <fireartist at gmail.com> wrote:
> On 17/07/07, kewei xiao <kewei.xiao at nald.ca> wrote:
> > Hi Carl
> >
> > if the labels are not auto-generated, how can they be localized?
>
> label_loc()
>
> > Also how legend and button value get localized?
>
> If you edit Element/fieldset.pm to use mk_output_accessors() to create
> 'legend' rather than using mk_accessors(), then you'll also get a
> legend_loc() method.
> ( remember to commit the change :)
>
> ...and value_loc() already exists.

I've committed some changes - so fieldset->legend() now has *_loc()
and *_xml() variants.

I've also changed content_button->content() - it wasn't being
xml-escaped. It is now escaped, so you have to use content_xml() to
pass raw markup.
There's also now a content_button->content_loc() method.

Carl



More information about the HTML-FormFu mailing list