Sun Java System Communications Express 6 2005Q4 Customization Guide

Localizing 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

Localizing 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

Russian 

ru

Arabic 

ar

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


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


// I18N Resource file
var i18n = new Array()
var fldr = new Array()
// DO NOT TRANSLATE AS STRINGS-JUST VALUES
i18n[\qfontface\q] = \qPrimaSans BT,Verdana,sans-serif
i18n[\qfontface1\q] = i18n[\qfontface\q]
i18n[\qfontface2\q] = \qTimes New Roman,Times,serif\q
i18n[\qfontface3\q] = \qCourier New,Courier,mono\q
i18n[\qnbsp\q] = \q \q

                  

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.