By default, each software package includes support for 17 Default languages list. Depending on your requirements, you may not need all of them to be shown to end users. There is an option that allows you to keep visible only the languages you need.

The language availability and visibility is managed in the AppServer configuration file - AppServer.xml. It is located under <WebSpellChecker_installation_directory>/AppServer/ directory.

1. Before any modifications in AppServer.xml, please stop AppServer (Main AppServer commands#stopAppServerWindowsLinux2.StopAppServer).

2. Locate the AppServer.xml file and open it for editing.

3. Scroll to the bottom of the document to the section with <Language Id="..."> ... </Language> tags. Each language is represented with its separate language tag.

Below are two language tags: American English (en_US) and British English (en_GB).

AppServerX.xml
<Language Id="en_US">
    <Alias>en</Alias>
    <Alias>am</Alias>
    <GrammarCheckProviderOptions>en-US</GrammarCheckProviderOptions>
    <ThesaurusEnabled>true</ThesaurusEnabled>
    <SpellEngineOptions>
        <Locale>am</Locale>
        <SpellCheckProvider>ssce</SpellCheckProvider>
        <Dictionary FullPath="ssceam2.clx">
            <ForSuggest>no</ForSuggest>
        </Dictionary>
        <Dictionary FullPath="ssceam2s.clx">
            <ForSuggest>yes</ForSuggest>
        </Dictionary>
        <Dictionary FullPath="sscema2.clx"/>
        <Dictionary FullPath="keywords.clx"/>
        <Dictionary FullPath="ssceam.tlx"/>
    </SpellEngineOptions>
</Language>

<Language Id="en_GB">
    <Alias>br</Alias>
    <GrammarCheckProviderOptions>en-GB</GrammarCheckProviderOptions>
    <ThesaurusEnabled>true</ThesaurusEnabled>
    <SpellEngineOptions>
        <Locale>br</Locale>
        <SpellCheckProvider>ssce</SpellCheckProvider>
        <Dictionary FullPath="sscemb2.clx"/>
        <Dictionary FullPath="sscebr2.clx"/>
        <Dictionary FullPath="keywords.clx"/>
        <Dictionary FullPath="sscebr.tlx"/>
    </SpellEngineOptions>
</Language>

4. Deactivate unused languages by commenting out the corresponding tags. 

Use <!-- to start a comment and --> to close the comment.

AppServerX.xml
<!-- Start of the comment
<Language Id="en_US">
    <Alias>en</Alias>
    <Alias>am</Alias>
    <GrammarCheckProviderOptions>en-US</GrammarCheckProviderOptions>
    <ThesaurusEnabled>true</ThesaurusEnabled>
    <SpellEngineOptions>
        <Locale>am</Locale>
        <SpellCheckProvider>ssce</SpellCheckProvider>
        <Dictionary FullPath="ssceam2.clx">
            <ForSuggest>no</ForSuggest>
        </Dictionary>
        <Dictionary FullPath="ssceam2s.clx">
            <ForSuggest>yes</ForSuggest>
        </Dictionary>
        <Dictionary FullPath="sscema2.clx"/>
        <Dictionary FullPath="keywords.clx"/>
        <Dictionary FullPath="ssceam.tlx"/>
    </SpellEngineOptions>
</Language>
--> End of the comment

5. Start AppServer (Main AppServer commands#startAppServerWindowsLinux1.StartAppServer) to apply changes.

6. Validate the list of the languages available using API get_lang_list  command. 

For details, visit Using WebSpellChecker Server Web API#5.GetLanguagesListCommand guide.


  • No labels