[html-formfu] Patch for _Group.pm options localization

vti viacheslav.t at gmail.com
Mon Feb 11 13:05:21 GMT 2008


Wanted to make something like:

- type: Select
  name: gender
  label_loc: 'formx_label_gender'
  options:
    - value: 'm'
      label_loc: 'formx_label_gender_m'
    - value: 'f'
      label_loc: 'formx_label_gender_f'
    - value: 'x'
      label_loc: 'formx_label_gender_x'

But it didn't work. Don't know if the fix is ok, but it works %)


Index: lib/HTML/FormFu/Element/_Group.pm
===================================================================
--- lib/HTML/FormFu/Element/_Group.pm   (revision 866)
+++ lib/HTML/FormFu/Element/_Group.pm   (working copy)
@@ -15,6 +15,7 @@
     group
     value
     label
+    label_loc
     attributes
     attrs
     attributes_xml

-- 
vti -- Viacheslav Tikhanovskii



More information about the HTML-FormFu mailing list