Hi all,

I want to use cron to send email by using symfony task, in symfony 1.4.9

My email is i18n mail and should be rendered before sending.

Everything is internationalized okay, except *format_date()*
I created email pattern in lib/email and is extending Swift_Message class.

I am also setting context and culture in my task like this:
$context = sfContext::createInstance($configuration);
        $context->getConfiguration()->loadHelpers(array('Url', 'I18N', 
'Tag', 'Date'));
        $context->getI18N()->setCulture($reminder->getUser()->getCulture());

and outputting body like this:
$body .= format_date($reminder->getDate(), 'd');

But date is always rendered in default english. Other strings are rendered 
correctly in provided language.

Can you help me please?

-- 
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

Reply via email to