Spellchecker using EN-GB dictionary

2 posts, 0 answers
  1. PDS
    PDS avatar
    6 posts
    Member since:
    Mar 2011

    Posted 22 May 2014 Link to this post

    Hello,

    We're using spellchecking on a RadRichTextBox using an English / British dictionary. Based on the examples I've seen I'm under the impression that it should be enough to add the dictionary to the spellchecker associated with with RadRichTextBox.

    However whenever the user is typing in these controls it uses the EN-US dictionary rather than the EN-GB one. The only way to get the RichTextBox to use the EN-GB dictionary is to set the spellchecker explicitely, ie:

    richTextBox.SpellChecker = ControlSpellCheckersManager.GetControlSpellChecker(typeof(RadRichTextBox)).SpellChecker;

    Is this intended to work this way ?

    Cheers,
  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 23 May 2014 Link to this post

    Hello,

    I'm afraid I am having a hard time understanding your setup and the issue you are facing.

    The internalization feature provided by RadRichTextBox's spellchecking functionality depends on the current culture, i.e. in order to make sure the added by you English / British dictionary is used you can specify the current culture:
    Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");

    Alternatively you can specify the spellchecking culture of a specific control spell checker like this:
    ((DocumentSpellChecker)this.radRichTextBox.SpellChecker).SpellCheckingCulture = new CultureInfo("en-GB");

    Please let me know if I misunderstood you or you need further assistance.

    Regards,
    Petya
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. DevCraft banner
Back to Top