BUGFIX: Pass locale rather than language to spellchecker_languages (from r87869)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@90854 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-11-05 01:17:52 +00:00
parent 8adc6757c2
commit 3587ba8a85

View File

@ -100,9 +100,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');