Home » Database » DB_DataObject_FormBuilder » Bug #2336
dateFieldLanguage property doesn't work
Details
| Submitted | 2004-09-15 11:12 UTC |
|---|---|
| From | sylvain at com-ocean dot com |
| Assigned | justinpatrin |
| Status | Closed |
| Package | DB_DataObject_FormBuilder |
| PHP Version | 4.3.8 |
| OS | Windows XP |
| Roadmaps | (Not assigned) |
Comments
[2004-09-15 11:12 UTC] sylvain at com-ocean dot com
Description:
------------
dateFieldLanguage property doesn't work, date input element are always in english.
I find the solution to resolve the bug in the source of the "FormBuilder/Quickform.php" file of DB_DataObject_FormBuilder v0.10 :
Line 421 :
$dateOptions = array('format' => $this->dateElementFormat);
remplace it by :
$dateOptions = array('format' => $this->dateElementFormat,'language' => $this->dateFieldLanguage);
Reproduce code:
---------------
In my dataObject.ini :
[DB_DataObject_FormBuilder]
;...
dateFieldLanguage = fr
Expected result:
----------------
date input element are in english.
[2004-12-12 18:50 UTC] l dot nienhaus at gmail dot com
the fix was added to version 1.11 of Quickform.php but removed in version 1.12, so this bug seems to appear again
see
http://cvs.php.net/diff.php/pear/DB_DataObject_FormBuilder/FormBuilder/QuickForm.php?r1=1.11&r2=1.12&ty=h
line 418
and
http://cvs.php.net/diff.php/pear/DB_DataObject_FormBuilder/FormBuilder/QuickForm.php?r1=1.11&r2=1.22&ty=h
line 418