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

RadRichTextbox SpellCheck Language

3 Answers 257 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Luciano
Top achievements
Rank 1
Luciano asked on 19 Nov 2010, 08:22 AM
How do I change the language from English to Italian?
I tried the following code but does not work.

tdfStream is Italian.tdf file


 

 

RadDictionary dictionary = new RadDictionary();

 

dictionary.Load(tdfFileStream);

((

 

DocumentSpellChecker)this.editor.SpellChecker).AddDictionary(dictionary, CultureInfo.InvariantCulture);

Thanks

 

 

 

 

 

3 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 22 Nov 2010, 04:34 PM
Hello Luciano,

tdfFileStream has to be a Stream and not the file itself.
Provided that you have a file with the filename "it-IT.tdf" in your Silverlight project , you can read it as a stream like this:

string filename = "it-IT.tdf";
Stream tdfStream = Application.GetResourceStream(new Uri(filename, UriKind.Relative)).Stream;
and then proceed with the code you have pasted.
I have prepared a demo for your convenience. Hope that helps.
If you need further assistance, do not hesitate to contact us again.

Best wishes,
Iva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Ed
Top achievements
Rank 1
answered on 30 Nov 2010, 06:36 PM
Hello - I see that in the ZIP there is an Italian TDF file - I may be being dense, however where do I find TDF files for other supported languages? Thanks Ed.
0
Iva Toteva
Telerik team
answered on 01 Dec 2010, 02:26 PM
Hello Ed,

You can find the .TDF dictionaries in this forum post and if the language you are looking for is not among the ones there, you can create your own as described in this blogpost.
Try it out and let us know if you need further assistance.

Sincerely yours,
Iva
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
RichTextBox
Asked by
Luciano
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Ed
Top achievements
Rank 1
Share this question
or