Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Spell Checker

Go to End

2 Posts   1429 Views


Community Member, 141 Posts

1 June 2010 at 12:34am

It seems there is something wrong with the spell checker.
Although I placed ...


... into mysite/_config.php the TinyMCE UI is English and the spell checker checks for English grammar. But the little ABC icon shows me after a click "German (Germany)". Anyway it uses the English grammar and makes almost every word red underlined.

How can I change that?


Community Member, 141 Posts

1 June 2010 at 10:33pm

Edited: 01/06/2010 10:35pm

It's not TinyMCE what's wrong but SS.
I wrote in cms/code/CMSMain.php:

HtmlEditorConfig::get('cms')->setOption('spellchecker_languages', "+Deutsch=de");

... and it works fine. So these two lines don't do their job
$langName = i18n::get_locale_name($this->Locale);
HtmlEditorConfig::get('cms')->setOption('spellchecker_languages', "+{$langName}={$this->Locale}");

Maybe a bug? Should I open a new ticket?

If i18n::set_locale('de_DE'); sets its value to de_DE how does this work with the HtmlEditorConfig what needs Deutsch=de?