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

Spellchecker using EN-GB dictionary

2 Answers 61 Views
SpellChecker
This is a migrated thread and some comments may be shown as answers.
PDS
Top achievements
Rank 1
PDS asked on 22 May 2014, 02:33 PM
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 Answers, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 23 May 2014, 01:09 PM
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.
 
0
V vls
Top achievements
Rank 1
answered on 13 Aug 2017, 07:51 AM
Hi, please use a spellchecker to check spelling, but when you add a dictionary (about 600 thousand words), the component is very slow, is there another possibility to add Russian dictionary?
Tags
SpellChecker
Asked by
PDS
Top achievements
Rank 1
Answers by
Petya
Telerik team
V vls
Top achievements
Rank 1
Share this question
or