Thanks pixels, you are right, i have a little confused between culture
and format, the sfWidgetFormDate works well, while the problem remains
with sfWidgetFormJQueryDate .
I tried to import the localization file of jQuery UI manually:
ui/i18n/ui.datepicker-it.js
and now it works: the calendar is displayed in italian.
But when you select the date is not good (I think that are exchanged
month and day).
Finding directly in HTML/JavaScript generated code, I found this:
function storicogprs_filters_time_from_update_linked(date)
{
$("#storicogprs_filters_time_from_day").val(date.substring(3, 5));
$("#storicogprs_filters_time_from_month").val(date.substring(0,
2));
$("#storicogprs_filters_time_from_year").val(date.substring(6,
10));
}
this assumes that the first 2 characters are always the month. It
seems to me wrong!
On 11 Gen, 08:42, pixelmeister <[email protected]> wrote:
> Hello Daniele,
>
> in the listings my culture setting are also O.K.
> I got it now to work now, that the dropdowns from the Datefields are right:
>
> $this->widgetSchema['start_date'] = new
> sfWidgetFormJQueryDate(array('culture' => 'de_DE', 'format' =>
> '%day%.%month%.%year%'));
>
> But the Datepicker from JQuery still is in english format.
>
> 2009/1/10 Daniele <[email protected]>
>
>
>
> > I have exactly the same problem with another culture.
> > But I have the same problem also with the standard sfWidgetFormDate
> > widget.
> > I think that culture is generally automatically discovered, but some
> > things perhaps does not works well in forms.
> > In fact I have noticed that in lists the fields of date type works
> > well (culture and format parameters are correctly handled).
>
> > On Jan 9, 5:12 pm, "Kai Brändle" <[email protected]> wrote:
> > > Hello all,
>
> > > i try to get the sfWidgetFormJQueryDate to display dates in German
> > format.
> > > But i cant figure out how to do it.
>
> > > I tried:
> > > $this->widgetSchema['start_date'] = new
> > > sfWidgetFormJQueryDate(array('culture' => 'de_DE', 'format' =>
> > > '%day%.%month%.%year%'));
>
> > > $this->widgetSchema['start_date'] = new
> > > sfWidgetFormJQueryDate(array('culture' => 'de', 'format' =>
> > > '%day%.%month%.%year%'));
>
> > > But nothing works.
> > > Has someone an idea for me?
>
> > > Thanks, Kai
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---