Online Documentation
- Introducing ASPSpellCheck
- Introduction to ASPSpellCheck
- What's New
- Getting Started
- Installation and Settings
- Installation Process
- Compatibility
- Installing Dictionaries
- Your Custom Dictionary
- Enforcing Spelling Corrections
- The Settings File
- Usage
- Basics
- ASPSpellLink Class
- Properties
- caseSensitive
- checkGrammar
- dictionary
- dialogLanguage
- doneMessage
- externalCSS
- fields
- hideSummary
- ignoreAllCaps
- ignoreNumbers
- ignoreWebAddresses
- javaScriptCallback
- newSentanceOnEachNewLine
- useSession
- ASPSpellPath
- Methods
- buttonHTML
- buttonXHTML
- imageButtonHTML
- imageButtonXHTML
- linkHTML
- spellingCheck
- spellingSuggestions
- url
- Notes for Advanced Developers
- ASP.Net Compatibility
- Caching
- Examples
- Basic SpellCheck
- Server Side Spellchecking
- Language Variants
- Submitting a Form
- Rich Editors
- Licenses & Registration
- Free Trial
- Registering
- License Agreement
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 :
