Hi,
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:
EPiServer.Personalization.EPiServerProfile.Current.Language
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.
Cheers,
Andy
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. ;)
Hi,
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:
EPiServer.Personalization.EPiServerProfile.Current.Language
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.
Cheers,
Andy