Hello Bertrand, This bug is resolved by this commit : https://github.com/fabpot/symfony/commit/a45baed8129c0e16d082d51216d43df0bb0da7ff
Le 15 nov. 2010 à 19:43, Bertrand Zuchuat a écrit : > Hi Fabien, > > I have another problem with Translation. I switch to another locale (ex: > en_US) work but if i would like to return to my default locale, this is not > work. > > $this['request']->getSession()->setLocale('en_US'); ==> OK > $this['request']->getSession()->setLocale('fr_CH'); ==> NOT OK > > My config: > app.config: > ... > session: > storage_id: native > default_locale: fr_CH > name: xxxx > lifetime: 3600 > translator: > enabled: true > fallback: fr_CH > > If i paste the default value (fr_CH) on setLocale, the locale attribute > doesn't change because, you are this test "$locale === > $this->getDefaultLocale()". > > class Session > { > ... > > public function setLocale($locale) > { > if ($locale === $this->getDefaultLocale()) { > return; > } > > if (false === $this->started) { > $this->start(); > } > > $this->attributes['_locale'] = $locale; > } > } > > is it possible to default this test ? > > Thanks for your help > > Bertrand > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > 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 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com 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