From d031e1da91753ca87fe7a342e0615ab5a0a950f4 Mon Sep 17 00:00:00 2001 From: hartvig Date: Sat, 15 Jan 2011 22:06:28 +0500 Subject: [PATCH] Work items: 29888 --- components/editorControls/tinyMCE3/TinyMCE.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/editorControls/tinyMCE3/TinyMCE.cs b/components/editorControls/tinyMCE3/TinyMCE.cs index f4ad03fac7..43cae0d770 100644 --- a/components/editorControls/tinyMCE3/TinyMCE.cs +++ b/components/editorControls/tinyMCE3/TinyMCE.cs @@ -185,7 +185,11 @@ namespace umbraco.editorControls.tinyMCE3 } // language - config.Add("language", User.GetCurrent().Language); + string userLang = User.GetCurrent().Language.Contains("-") + ? User.GetCurrent().Language.Substring(0, + User.GetCurrent().Language.IndexOf("-")) + : User.GetCurrent().Language; + config.Add("language", userLang); config.Add("content_css", cssFiles); config.Add("theme_umbraco_styles", styles);