Communications Express Add Dictionary To Spellchecker

From MsgServerDocWiki

Jump to: navigation, search

Can I add additional dictionaries to Communications Express, for example, Russian?

The dictionaries in Communications Express are from ispell. You can download additional dictionaries here.

The instructions on installing them are located in the Sun Java System Communications Express Customization Guide. The shorthand version of these instructions are as follows.

  1. You need the buildhash utility to create a correct dictionary using .aff and . dic files:
    buildhash dictionary_file affix_file language_name.hash
    

    You should use the buildhash utility which is bundled with the Messaging Server 6.3.

  2. After building the dictionary, copy it to where other dictionaries are (the default path on Solaris is /opt/SUNWmsgsr. The file should be named xx.hash (xx is the language code), and its ownership and permissions should be like these of other hash files.
  3. Add new language code in supported languages list, unless it is already there:
    configutil -o local.supportedlanguages -v "[..........................,ru-RU]" 
       (if ru-RU is Russian dictionary)
    
  4. Add a localized name of the new language in the appropriate i18n.js files in the Communications Express distribution, if it is not there yet. These files are, by default, located in /var/opt/SUNWuwc/webmail/xx, where xx is one of the languages that Communications Express is localized to. So for instance if your site uses English and you add the Russian dictionary (the newly build Russian dictionary is called ru.hash), you need to edit /var/opt/SUNWuwc/webmail/en/i18n.js so that it contains the following line:
    i18n['ru-RU']='Russian'
    
  5. Restart the Communications Express' web container and the Messaging Server
Personal tools