Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
Hi,
You can retrieve the master language from the startpage, startPage.MasterLanguageBranch.
You can also change the CultureInfo on current thread in OnPreInit
protected override void OnPreInit(EventArgs e)
{
Thread.CurrentThread.CurrentCulture = new CultureInfo("en");
Thread.CurrentThread.CurrentUICulture = new CultureInfo("en");
base.OnPreInit(e);
}
When I use LanguageManager.Translate(string key), it will use the current culture as the language. I don't want that, so I need to use LanguageManager.Translate(string key, string language), which also takes a language parameter like "sv".
I want to use the site's master language, but I don't know where to find the language string for that. Do you?