Sun Java System Communications Express 6.3 Customization Guide

Calendar and Options

To 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 Calendar

The 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

Symbol  

Meaning  

Presentation  

Example  

year 

Number 

1996 

month in year 

Text&Number 

July & 07 

day in month 

Number 

10 

hour in am/pm (1-12) 

Number 

12 

hour in day (0-23) 

Number 

minute in hour 

Number 

30 

second in minute 

Number 

55 

millisecond 

Number 

978 

day in week 

Text 

Tuesday 

day in year 

Number 

189 

day of week in month 

Number 

2 (2nd Wed in July) 

week in year 

Number 

27 

week in month 

Number 

am/pm marker 

Text 

PM 

time zone 

Text 

Pacific Standard Time 

” 

escape for text 

Delimiter 

(none) 

” 

single quote 

Literal 

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

Presentation  

Number of Symbols  

Result  

Text 

1-3 

”abbreviated form, if one exists 

Text 

>=4 

full form 

Number 

minimum number of digits is required 

shorter number are padded with zeros (for year, if the count of ”y’ is 2, then the year is truncated to 2 digits) 

Text & Number 

1-2 

text form 

Text & Number 

number form