ASPSpellLink.addLanguage(strLang)

The addLagnuage  method is used to decide which dictionary language(s) the spell-check dialog will use.

strLang represents the dictionary to be added.  This will be the same as the name of any dictionary you have installed in the Dictionaries directory within your ASPSpellCheck Directory  (do not use the ".dic" and the end though).

Examples of possible values of strLang are:

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

N.B. These dictionaries must, of course, be installed to be used.

You may use up to 10 dictionaries simultaneously!  Just call ASPSpellLink.addLaguage for each respective language.  This is useful for spellchecking mixed-language documents.

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

Example

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.
</textarea >  

<% 
dim myLink
set myLink = new AspSpellLink
myLink.fields="MyTextArea" ' sets an object ID to be spellchecked
myLink.addLanguage("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. Ths izateztsampl.  </textarea >
  
<% 
dim myLink
set myLink = new AspSpellLink
myLink.fields= "MyTextArea" ' sets an object ID to be spellchecked
myLink.addLanguage("Francais" ) 'French Dictionary
myLink.dialogLanguage= "FR" 'French Language Dialog
response.write myLink.imageButtonHTML("","","") 'renders a button
set myLink = nothing  'closes the class
%>