L10N of FormBuilder
| From: | Michel D'HOOGE | Date: | Tue, 06 Jun 2006 09:20:07 +0000 |
| Subject: | L10N of FormBuilder | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-24260@lists.php.net to get a copy of this message | ||
Hello
I tried to localise my FormBuilders and encountered problems with
the "denotes required field" footnote. Indeed, it is not available through
the FB options (I had a private discussion with Patrin Justin about that
and I agree with him that it isn't good to duplicate all options in FB).
So I tried and succeeded in overloading the FB class to catch the Form
creation and update the footnote's text. Unfortunately, an FB instance can
create sub-FB for linked and crossed fields. And in that case, the created
sub-FB instance is a plain vanilla one :-(
I guess this has to do with PHP's 'emulated OOP' because the call is:
$subFB =& DB_DataObject_FormBuilder::create($do);
Maybe this could be replaced in all places by something like:
$subFB =& $this->create($do);
However, my feeling is that it is QuickForm that should implements I18N. But
I can't find anything related to this. Any comment?
--
Michel