[html-formfu] options_loc?

Carl Franks fireartist at gmail.com
Wed Oct 31 09:10:14 GMT 2007


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).

Carl



More information about the HTML-FormFu mailing list