This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » General plug-ins » how do I change sfWidgetFormJQueryDate culture ?
how do I change sfWidgetFormJQueryDate culture ? [message #79773] Fri, 12 June 2009 15:24 Go to previous message
JessOVR  is currently offline JessOVR
Messages: 48
Registered: April 2008
Location: France
Member
Hi,

I'm using symfony 1.2.7 + sfJqueryReloadedPlugin + sfFormExtraPlugin, then I've manually installed Jquery UI (jquery-ui-1.7.2.custom.min.js, in view.yml) because could not find any plugin doing it for me), so that I get the nice jQuery date widget working with sfFormExtraPlugin...

so, it's working but :
I'm trying to set the widget culture accordingly to that of current User, like this :

    $this->widgetSchema['birthday'] = new sfWidgetFormJQueryDate(
      array(
        'config'  => "{}",
        'image'   => "/images/date.png",
        'culture' => sfContext::getInstance()->getUser()->getCulture(),
        )
        );


It still displays the widget with default english culture.
I guess there are some additionnal files to load that contain other cultures. But what/where are these files ? How/where do I load them ?

thank you Smile

Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic:Save multiple values with autocompleter widget from sfFormExtraPlugin
Next Topic:sfDoctrineRestGeneratorPlugin 0.9.2 - How to use logical clauses
Goto Forum:

  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software