Ensure correct spelling and diversify the scope of the spell checker in the
rich text editors (RTEs) in your application, by defining additional supported
By default, the spell checker verifies spelling according to the
language that is associated with the locale of the user. By modifying the
pyDefaultSpellCheckLocale decision table, you expand the list of
languages for the spell checker.
Before you begin: Ensure that you have a property with a list of supported
languages from which a user can select the language for the spell checker. For example,
create a drop-down list that is based on a value list property that includes the options
for American English and British English.
In the navigation pane of Dev Studio,
Expand the Decision category, and then click
Locate and open the pyDefaultSpellCheckLocale decision
Save an instance of the decision table in your ruleset by clicking Save asSpecialize by class or ruleset.
Complete the Decision Table Record Configuration form.
Click Create and open.
Click the header of the Default column.
In the Select property modal dialog box, in the
Property field, enter the name of the property that
contains values for the supported languages, and then click
Define the conditions and actions for the additional locale and the default
locale based on the values in the property.For example: For a user who wants to default to American English and have the option to
switch to British English, define the following logic:
Result: At run time, the user can now select the language in which
they want to enter text, for example, in a drop-down list, and the spell checker
validates the text for correctness in that language.