Try our conversational search powered by Generative AI!

Detecting edit mode language?



Can anyone please tell me how to detect the language the editor is working in Edit Mode ?

I don't wnat the language of the page they're editing, but the language they are working in.

Usually I'd go after:


but this returns an empty string if the language isn't specifically specified.

There's HttpContext.Current.Items.ContentLanguage, but I can't find any documentation for this.



Apr 18, 2008 16:13

If you want the UI language you could have a look at the current thread's UICulture.

If you want to know which language is selected (ie the "Show Page Tree" dropdown selection) you can have a look at the "editlanguagebranch" cookie. ;)

Edited, Apr 26, 2011 17:22
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.