Change the Language of the emails

rated by 0 users
Answered (Verified) This post has 1 verified answer | 1 Reply | 1 Follower

Not Ranked
20 Posts
Points 240
ghettoiam posted on Tue, Sep 23 2008 6:04 PM

We have one instance of CS running multiple languages, filtering content by language.  At page_load we load a value from session to even allow anonymous users to filter content by language.

The problem is when an anonymous user signs up, there email always comes back in English.  We're about to deploy in multiple languages, but this is the last hurdle we have and it's come up at the 11th hour.

I've tried setting the .Language property of the context in various parts...

EmailJobs.SendQueuedEmailJob...

SendEmails.SendMessage...

But I've had no success yet.

HELP!

Answered (Verified) Verified Answer

Not Ranked
20 Posts
Points 240
Verified by ghettoiam

The solution to this has two facets:

a) in the emails.xml file, the german language pack is missing a node containing the corresponding english email.  It is the 'email activation' email missing in the language pack.

b) to make sure emails are sent in a different language:
- create a user for each language
- login as them and change that users default language to the appropriate language
- go to the database and for the user set IsAnonymous = 'true'
- go into the code and set the CSContext.User = Users.GetUser('AnonymousLanguage');

That's pretty much it.

  • | Post Points: 5
Page 1 of 1 (2 items) | RSS
Powered by Community Server (Commercial Edition), by Telligent Systems

Copyright© 2008 Telligent Systems Inc. All rights reserved
CommunityServer.com  •  Telligent.com