Contained WithinFind More DocumentationFeatured Support Resources | Descargar este libro en PDF (1030 KB)
Chapter 9 Localizing Communications ExpressCommunications Express allows you to localize Mail, Calendar, Address Book, and Options as per your requirements. Calendar and OptionsTo localize text, you need to change the i18n.properties file that is located in <domain-dir>/<locale> directory. If the deployment is configured to work with multiple domains and multiple locales, then a directory by that domain name is created under <domain-dir> For example, if there is a domain called example.com, perform the following steps.
Date/Time Formats for CalendarThe localization of the Date/Time formats for Calendar should be performed by constructing locale-specific patterns for certain symbols, delimiters and hard-coded strings that are enclosed in single quotes. These symbols are converted into locale specific strings by Communications Express. For more information on localizing date and time formats in calendar, see Date/Time Formats for Calendar. Table 9–1 Localizing Date/Time Formats for Calendar
Characters that are displayed in the table above are treated as quoted text. These characters appear in the formatted text even if they are not enclosed within single quotes. The number of symbol letters you specify also determines the format. For example, if the “zz” pattern results in “PDT,” then the “zzzz” pattern generates “Pacific Daylight Time.” Date/Time Formats for Calendar summarizes these rules. Table 9–2 Localization Rules
Languages that use Characters Outside the ASCII RangeYou may want to use the native2ascii utility provided by JDK to convert non-ascii characters into escaped unicode values. This utility is available at <jdk-install-dir>/bin To use the native2ascii utility, enter non-ascii characters for the corresponding values in the properties file and save it. Use the command, native2ascii -encloding <native_encoding> <src_filename> <target_filename> where, native_encoding represents the encoding used to create the source file, src_filename represents the source file and target_filename represents the i18n.properties file. 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 LocalesMail 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
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
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. Adding LocalesTo add a locale, perform the following steps.
Example 9–2 Adding a keyword for the new locale
Example 9–3 Adding a localized string for the locale name
Changing Source EncodingSome mail clients do not set the encoding type in MIME header before sending emails. Communications Express allows users to view a message in a different character encoding. For example, Arabic has a number of character encoding (CP-1256, Arabic DOS, UTF8, Nafitha, Sakhr, ISO-8859, MacArabic). Communications Express allows users to change the browser encoding to be able to view the mail that they receive in different character encoding.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||