Re: HTML_OOH_Form
| From: | M@rms | Date: | Wed, 21 Aug 2002 12:27:11 +0000 |
| Subject: | Re: HTML_OOH_Form | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-8544@lists.php.net to get a copy of this message | ||
> Attached you'll find 2 patchs for the date widget of
> HTML_OOH_Form package.
> The first one add french month / day name to the select widgets.
> The second one fix a (strange) issue which prevent preload to work
> under our php 4.2.2.
> Can someone commit them ?
Seems that attachements has been stripped out.
form_element_date.php
372,373c372
<
< foreach ($options as $k => $option)
---
> foreach ($options as $k => $option) {
376c375,376
< ((isset($value[$name]) && $option == $value[$name]) ||
($this->preload && $option ==
$this->getPreloadValue($name))) ? " selected" : "",
---
> ((isset($value[$name]) && ($option == (string)$value[$name]))
> || ($this->preload && ($option ==
> $this->getPreloadValue($name)))) ?
> " selected" : "",
380c380
<
---
> }
form_element_dateobject.php
65c65,79
< )
---
> ),
> 'fr' => array (
> 'weekdays_short' => array (
> 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven',
> 'Sam',
> 'Dim'),
>
> 'weekdays_long' => array (
> 'Lundi', 'Mardi', 'Mercredi', 'Jeudi',
> 'Vendredi',
> 'Samedi', 'Dimanche'),
>
> 'months_short' => array (
> 'Jan', 'Fév', 'Mars', 'Avril', 'Mai',
> 'Juin', 'Juil',
> 'Août',
> 'Sept', 'Oct', 'Nov', 'Déc'),
>
> 'months_long' => array(
> 'Janvier', 'Février', 'Mars', 'Avril',
> 'Mai', 'Juin',
> 'Juillet',
> 'Août', 'Septembre',
> 'Octobre', 'Novembre',
> 'Décembre'
> )
>
> )
>