mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
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:
parent
8adc6757c2
commit
3587ba8a85
@ -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');
|
||||||
|
Loading…
Reference in New Issue
Block a user