Change RadRichTextBox SpellChecker Language

2 posts, 0 answers
  1. Joseph
    Joseph avatar
    135 posts
    Member since:
    Sep 2007

    Posted 02 Feb 2011 Link to this post

    Hi guys,

    I am using the following code the change the spellchecker language :

    dictionary = new RadDictionary();
     
                       dictionary.Load(resource);
     
                       ((DocumentSpellChecker)this.richTextArea.SpellChecker).AddDictionary(dictionary, new CultureInfo("it-IT"));

    resource variable is a Stream object streamed from the server.

    But all the suggestions are english words not italians.

    Am I missing something here ?
  2. Iva Toteva
    Admin
    Iva Toteva avatar
    1319 posts

    Posted 04 Feb 2011 Link to this post

    Hi Joseph,

    Currently the SpellChecker gets the suggestions from the dictionary, associated with the current culture of the UI thread (which in your case is English). What you can do now is to set the current culture of the UI thread like this:

    Thread.CurrentThread.CurrentCulture = new CultureInfo("it-IT");

    We will be introducing a mechanism that will enable spell checking in languages other than English without having to change the current culture. It will be included into the official Q1 2011 release.

    All the best,
    Iva
    the Telerik team
    Let us know about your Windows Phone 7 application built with RadControls and we will help you promote it. Learn more>>
Back to Top