Hi everybody,
I have some questions about batch, mailing and i18n.
I explain.
I have a cron script that launch mail to all members of my website.
This website is in english or french. The member choose its language
so he receive all informations and mail in this language.
But for mailing i18n seems not to work for me.
Here's the code of my action method that mail to user
[CODE]
public function executeSendAlerteVisites() {
$oCriteria = new Criteria();
$oCriteria->add(MembrePeer::EMAIL, $this->getRequest()-
>getAttribute('email'));
$oMembre = MembrePeer::doSelectOne($oCriteria);
// Here I try to change culture to 'fr_FR' or 'en_US'
$this->getUser()->setCulture($oMembre->getLangue()->getIso());
sfLoader::loadHelpers(array('I18N'));
...
...
// This mail subject is always in french (default)
$mail->setSubject(__('alerte_visite_title', null, 'mail'));
...
return $oMembre->getLangue()->getIso();
}
[/CODE]
THe subject is always in french while the mail content is always in
the good language.
How could I change this ?
Thanks for any help
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---