Hey,

When my widgets are created, one of them is regarding the language :

'language'              => new sfWidgetFormI18nSelectLanguage(array
('culture' => 'fr')),

But I need to setup the culture with a default value (here french).

I would like to end up with some kind of code that will allow me to
setup the culture according to the culture of the user that is
connected or if not based on the browser language that is used.

Do you have any idea on how to do it ?

Note : I tried to use : $this->getUser()->getCulture();

But it did not work.

Regards,

Frédéric
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to