ASPSpellLink.dictionary

The dictionary property sets the default dictionary which spellchecker will use.

The value should be the same as the name of any dictionary you have installed in the Dictionaries directory  (do not use the ".dic" at the end though).

Examples of possible values of dictionary are:

  • "Deutsch" - for German
  • "English (Australia)" - for Australian English
  • "English (Canada)" - for Canadian English
  • "English (International)" - for International English
  • "English (UK)" - for British English
  • "English (USA)" - for US American English
  • "Espanol" - for Spanish
  • "Francais"  - for French
  • "Italiano" - for Italian
  • "Nederlands" - for Dutch
  • "Portugues" - for Portuguese
  • "Svenska" - for Swedish
  • "Dansk" - For Danish

You may use up to multiple dictionaries at the same time using a comma separated list (see below).

If this method is not used, the Dictionary used will be defined by the settings file.

ASP VBScript Source Code:

If you wanted to your spellchecker to use a German Dictionary:

<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->

<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >
Hello World. Gutten Tag.
</textarea >  

<% 
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea" ' sets an object ID to be spellchecked
myLink.dictionary = "Deutsch" 'German Dictionary
response.write myLink.imageButtonHTML("","","") 'renders a button
set myLink = nothing  'closes the class
%>

 

If you wanted to your spellchecker to use French and English together :

<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->

<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >
Hello World. Bonjour
</textarea >  

<% 
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea" ' sets an object ID to be spellchecked
myLink.dictionary = "English (Canada), Francais"  'English and French Dictionaries used togeather
response.write myLink.imageButtonHTML("","","") 'renders a button
set myLink = nothing  'closes the class
%>
 

 

If you wanted to your spellchecker to use a French Dictionary and use a French language spellchecker dialog :

<!--#include virtual="/ASPSpellCheck/ASPSpellInclude.inc"-->

<textarea id="MyTextArea" name="MyTextArea" cols="30" rows="10" >
Hello World.  Bonjour. 
</textarea >  

<% 
dim myLink
set myLink = new AspSpellLink
myLink.fields= "MyTextArea"
myLink.dictionary = "Francais"  'French Dictionary
myLink.dialogLanguage= "FR"  'French Language Dialog
response.write myLink.imageButtonHTML("","","")
set myLink = nothing 
%>