There are various options on how you can add new language dictionaries.
New dictionary files may be downloaded from the Additional Dictionaries section at -
http://www.richtextbox.com/richtextbox/support
1: Place the new .dictionary file within your web application /bin directory so that it beside your RichTextBox.DLL file.
This will allow the Spell Checker to automatically find the new dictionary without any other settings needed.
If your RichTextBox.DLL is in the GAC, or you wish to contain the .dictionary files in a separate folder, there are two options.
2: Global set the dictionary path for your app by adding a new key to your web.config file.
Note: in the cases below we have created a folder/dir called dictionary in the root of our Web Application
'myapp'. This folder contains one or more dictionary files.
e.g.
<appSettings>
<add key="RichTextBoxSpellCheckerDictionaryUrl" value="/myapp/dictionary "/>
</appSettings>
Or
<appSettings>
<add key="RichTextBoxSpellCheckerDictionaryPath" value="C:\webapps\myapp\dictionary"/>
</appSettings>
3: On the page (or in the page code) that contains the RichTextBox
e.g.
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
myRTB.SpellCheckerDictionaryUrl = “/myapp/dictionary”;
//OR
myRTB.SpellCheckerDictionaryPath = @" C:\webapps\myapp\dictionary";
}
</script>
OR
<RTB:RICHTEXTBOX id="myRTB" runat="server" SpellCheckerDictionaryUrl = “/myapp/dictionary”></RTB:RICHTEXTBOX>
OR
<RTB:RICHTEXTBOX id="myRTB" runat="server" SpellCheckerDictionaryPath=" C:\webapps\myapp\dictionary"></RTB:RICHTEXTBOX>
If our dictionary folder contained multiple dictionary files and one was a en-UK then the following code will enforce the use of the en-UK dictionary.
In Page_Load -
this
.Culture = "en-GB";
myRTB.SpellCheckerCultureBehavior = RichTextBoxControl.CultureBehavior.ServerCurrentCulture;