Sun Java System Communications Express 6.3 Customization Guide

Mail

Communications Express allows you to localize any feature of Mail. Different pages can be created for different languages. When you create language-specific static pages, you need to group them in subdirectories under the main document directory. The code automatically detects the client’s language preference and fetches the pages from the appropriate subdirectory.

When you change common sections for static pages, you must make the changes in multiple locale (languages) directories, if modifications are desired across languages (for example, if changes are required to modify JavaScript behavior). Conversely, you can also make language-specific modifications selectively throughout the application.

Specific Locales

Mail lists the specific locales and their abbreviations that are supported by Communications Express services. The default language is English.

Table 9–3 Communications Express Specific Locales

Locale  

Abbreviation  

English 

en

Japanese 

ja

Spanish 

es

French 

fr

German 

de

Traditional Chinese 

zh-TW

Simplified Chinese 

zh-CN

Korean 

ko

Mail shows the changes to be made to the ru/i18n.js file for modifying the charset in the i18n.js file.


Example 9–1 Modifying the charset in the i18n Resource File


    i18n['client charset'] = 'iso-8859-5'
    i18n['http charset'] = 'iso-8859-5'
    i18n['fontface'] = 'PrimaSans BT,Verdana,sans-serif'
    i18n['fontface1'] = i18n['fontface']
    i18n['fontface2'] = 'Times New Roman,Times,serif'
    i18n['fontface3'] = 'Courier New,Courier,mono'
    i18n['nbsp'] = ' '

Communications Express allows you to customize text that is displayed on web pages. This text is both customizable and localizable. The system also allows you to configure text on a per domain basis.