Hi all,
I have an issue about i18n and Culture update in action method.
It call an action in fr_FR for example.
This method sent an email but I need to send it in english so it
change the culture before calling methos 'sendemail'.
This is good in execution.
My probleme is that it change just before displaying the template to
fr_FR in order to show in willing culture. This is not working. The
template is in english. But if i click to another page, it's in
french.
I do not know if it is clear but ... I need help ^^
Here's my code and the behaviour.
-- CODE --
...
$sLangue = $this->getUser()->getCulture();
// fr_FR
$this->getUser()->setCulture($oMembre->getDepartement()->getRegion()-
>getPays()->getLangue()->getIso());
// en_EN
$this->sendEmail('mail', 'sendLost');
// Mail sent in english
$this->getUser()->setCulture($sLanguage);
// Should be fr_FR
// But template in english.
// I f I click on a link => next page in fr_FR ?????
return 'Sent';
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---