[html-formfu] options_loc?

Mario Minati mario.minati at googlemail.com
Wed Oct 31 21:46:00 GMT 2007


On Wednesday 31 October 2007 10:10:14 Carl Franks wrote:
> On 30/10/2007, Mario Minati <mario.minati at googlemail.com> wrote:
> > Do we currently have a way to localize the Select (or Radiogroup)
> > options?
>
> Not currently.
> I would suggest doing it by adding support for a 'label_loc' hash-key
> for each item passed to options().
> This is handled by _parse_option() in _Group.pm
>
> If you also wanted support for 'attributes_loc' and
> 'label_attributes_loc', you'd have to do a hash-merge with any
> non-localized arg. (e.g. if both 'attributes' and 'attributes_loc' are
> passed).

I'll take care of that.

Greets,
Mario



More information about the HTML-FormFu mailing list