Add New Language ME
From MsgServerDocWiki
How do I add a new language to the Messenger Express interface that is not one of the languages localized by Sun?
Because Sun does not provide additional localizations beyond those already supplied, you need to do your own translation.
Start by copying the original files of one of the supported languages to the new language you need to support. In this case I translate from English (language code: en) to Dutch (language code: nl). Your Messenger Express may be installed in a different directory, change paths accordingly.
cp -r /opt/SUNWmsgsr/config/html/en /opt/SUNWmsgsr/config/html/nl
Translate the file /opt/SUNWmsgsr/config/html/nl/i18n.js. It contains most of natural language used in webmail. The files help.htm and help2.htm contain a lot of help text. I cheated and replaced those files with less extensive useage instructions or just leave the original english and hope the customers don't complain too much.
For each language already supported and the new one edit the file i18n.js and add a localized name for the Dutch language and add Dutch to the supported/available languages in the options page.
/opt/SUNWmsgsr/config/html/en/i18n.js
...
i18n['en']='English'
i18n['nl']='Dutch'
...
function i18n_preferredlanguagelist()
{
var lang_list = new Array('en','nl','es')
...
/opt/SUNWmsgsr/config/html/es/i18n.js
...
i18n['en']='Inglés'
i18n['nl']='Holandés'
...
function i18n_preferredlanguagelist()
{
var lang_list = new Array('en','nl','es')
...
/opt/SUNWmsgsr/config/html/nl/i18n.js
...
i18n['en']='Engels'
i18n['nl']='Nederlands'
...
function i18n_preferredlanguagelist()
{
var lang_list = new Array('en','nl','es')
...
The Messenger Express web interface has built in spelling check. The dictionary files come from the ancient/traditional unix ispell and are available for download from: ficus-www.cs.ucla.edu/geoff/ispell-dictionaries.html
Download the Dutch affix rule file and the actual dictionary files, and use the buildhash command to make a hash file Messenger Express can use. When copying this hash files be warned that you can't copy it from x64 to sparc (big/little endian) architectures.
wget ftp://ftp.tue.nl/pub/tex/GB95/ispell-dutch96/dutch96.lat (dictionary) wget ftp://ftp.tue.nl/pub/tex/GB95/ispell-dutch96/dutch96.aff (affix file for use with above dictionary)
/opt/SUNWmsgsr/lib/buildhash dutch96.lat dutch96.aff /opt/SUNWmsgsr/lib/nl.hash
with a new dictionary in the correct place it should be detected automatically after a restart of Messenger Express.
Use configutil to make Messenger Express aware of the new language:
/opt/SUNWmsgsr/sbin/configutil -o gen.installedlanguages /opt/SUNWmsgsr/sbin/configutil -o local.supportedlanguages
returns for instance the language strings: en,es. Add Dutch:
/opt/SUNWmsgsr/sbin/configutil -o gen.installedlanguages -v "en,es,nl" /opt/SUNWmsgsr/sbin/configutil -o local.supportedlanguages -v "[nl,en,es]"
Make the new Dutch language the default language for this site:
/opt/SUNWmsgsr/sbin/configutil -o gen.sitelanguage -v nl
Restart Messenger Express (web interface) to make the changes effective.
/opt/SUNWmsgsr/sbin/stop-msg /opt/SUNWmsgsr/sbin/start-msg
For more information, see this forum thread.

