protected static void LoginControl_LoggedIn(object sender, EventArgs e)
{
EPiServerProfile profile = EPiServerProfile.Current;
if (!string.IsNullOrEmpty(profile.Language))
{
CultureInfo newCulture = new CultureInfo(profile.Language);
ContentLanguage.PreferredCulture = newCulture;
}
}
Hi!
A solution for this has been discussed in the following thread:
http://world.episerver.com/Forum/Pages/thread.aspx?id=19801
Regards
Linus Ekström
EPiServer Development Team
I have tested this some more and come to the conclusion that the approach or a browser detectiong works, but this requires that the user has the "right" language set up for their browser. I have forwarded a request to the EPiServer product management to add a preffered content language setting for the profile to be able to handle this the same way as the ui language settings that exists today.
Regards
Linus Ekström
EPiServer Development Team
Hi Linus.
That would be great. The browser detection is a work around for now, but the best thing would be to display the page tree with the content language for the logged in user. Could you let me know when you get an answer from the EPiServer product management?
BR,
Tore