This is a migrated thread and some comments may be shown as answers.

Change RadRichTextBox SpellChecker Language

1 Answer 99 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Joseph
Top achievements
Rank 1
Joseph asked on 02 Feb 2011, 03:29 PM
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 ?

1 Answer, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 04 Feb 2011, 05:37 PM
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>>
Tags
RichTextBox
Asked by
Joseph
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Share this question
or