How can I configure multilingual emails? I'd like the email language to be chosen based on the receiving user, if possible. Else I'd like the language to be chosen based on the current culture of the page. eg: we have en-US(default) and es-ES languages on the site. If someone is commenting on a blog under the es-ES culture, I'd like the email that's sent to be in Spanish.
So far I've set up the UI Culture strings to be substituted and edited the 'Blogs - notification to owner' template. Here's the text version:
{$global.email.text.blogOwnerSubject$}:
{$global.email.text.blogPost$}: [url={%BlogPostLink%}]{%BlogPost.DocumentName%}
There are the appropriate culture keys in both languages (eg: global.email.text.blogText), but the macro replacement is always replacing using en-US.
I've tried:
1 - changing the page culture to es-ES, so that on the page all the appropriate Spanish UI strings are showing, and submit the blog comment.
2 - Changing the blog owner's preferred cultures to es-ES
I'm guessing that the email is sent out from the BlogCommentInfoProvider.SetBlogCommentInfo function, but since I don't have the source code, I can't really view into that.
In any case, I'd like to know how I can force the email to be in Spanish.
Cheers,
Lance