Jump to:

23459 Posts in 18906 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » Spell Checker

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

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

Page: 1
Go to End
Author Topic: 1089 Views
  • suntrop
    Avatar
    Community Member
    131 Posts

    Spell Checker Link to this post

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

    i18n::set_locale('de_DE');
    i18n::set_default_lang('de_DE');
    i18n::get_tinymce_lang('de_DE');


    ... 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?

  • suntrop
    Avatar
    Community Member
    131 Posts

    Re: Spell Checker Link to this post

    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?

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

    1089 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.