BUGFIX: Pass locale rather than language to spellchecker_languages

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@87869 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2009-10-01 03:46:28 +00:00
parent 8d51ecadea
commit 3af58dff76

View File

@ -98,9 +98,8 @@ class CMSMain extends LeftAndMain implements CurrentPageIdentifier, PermissionPr
// collect languages for TinyMCE spellchecker plugin. // collect languages for TinyMCE spellchecker plugin.
// see http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker // see http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/spellchecker
$lang = i18n::get_lang_from_locale($this->Locale);
$langName = i18n::get_locale_name($this->Locale); $langName = i18n::get_locale_name($this->Locale);
HtmlEditorConfig::get('cms')->setOption('spellchecker_languages', "+{$langName}={$lang}"); HtmlEditorConfig::get('cms')->setOption('spellchecker_languages', "+{$langName}={$this->Locale}");
Requirements::javascript(CMS_DIR . '/javascript/CMSMain.js'); Requirements::javascript(CMS_DIR . '/javascript/CMSMain.js');
Requirements::javascript(CMS_DIR . '/javascript/CMSMain_left.js'); Requirements::javascript(CMS_DIR . '/javascript/CMSMain_left.js');