<GWLocale> XML element of a localization file

A localization_localeCode.xml file contains a single <GWLocale> element in which you define the settings for a region. If you do not define an element or attribute, PolicyCenter uses the ICU library setting. The <GWLocale> element can take the following attributes and subelements.

<GWLocale> Attributes

The <GWLocale> element can take the following attributes.
code The region identifier, typically the same as the Java locale code defined in LocaleType. For example, "en_US".
name A String value for the name of the locale, which the application can display to the user in its screens. For example, "United States (English)".
firstDayOfWeek Defines the first day of the week for the region. Value is an integer representing a day of the week, starting with "1" for Sunday, "2" for Monday, and so on.
If not defined, the base configuration uses the following default ICU library settings for the region:
  • Sunday – en_AU, en_CA, en_US, fr_CA, ja_JP
  • Monday – de_DE, en_GB, fr_FR
typecode The corresponding regional typecode defined in the LocaleType typelist. For example, "en_US".
defaultCalendar "Gregorian" or "JapaneseImperial". The default value is "Gregorian".
enableJapaneseCalendar A Boolean value, true or false, that determines whether or not to enable the Japanese calendar for this region.

<GWLocale> Subelements

CurrencyFormat
Currency format pattern for the region, used in single currency display mode.
negativePattern, positivePattern Define how PolicyCenter displays positive and negative monetary amounts. PolicyCenter displays and formats the numeric value in place of the pound sign (#) in the pattern. PolicyCenter displays all other characters in the pattern as they are without modification.

For example, the positive pattern $# displays the numeric value 32 as $32.00. The negative pattern ($#) displays the numeric value -5 as ($5.00).

zeroValue Defines how PolicyCenter displays zero amounts. For example, the zero value pattern can be 0 (zero) or - (dash). If the numeric value of a monetary amount is null, PolicyCenter displays the amount as empty or blank. The monetary amount must be 0.00 for the zero value pattern to be used.
DateFormat
Patterns for the date formatter and parser.
long The long date format pattern. For example, "E, MMM d, yyyy".
medium The medium date format pattern. For example, "MMM d, yyyy".
short The short date format pattern. For example, "MM/dd/yyyy".
JapaneseImperialDateFormat
Japanese imperial calendar settings.
long Long Japanese imperial date format.
medium Medium Japanese imperial date format.
short Short Japanese imperial date format.
yearSymbol Japanese year symbol.
NumberFormat
Number formatter and parser configurations. Determines how PolicyCenter displays numbers.
decimalSymbol Symbol used to separate a whole number from its decimal fraction, usually a period or a comma. For example, ".".
negativeEntryPattern Format for entering negative numeric values. For example, "(#)".
thousandsSymbol Symbol used to separate groups of three digits to the left of the decimal mark, usually a period or a comma. For example, ",".
TimeFormat
Time formatter and parser configuration.
long Long time format pattern. For example, "h:mm:ss a z".
medium Medium time format pattern. For example, "hh:mm:ss a".
short Short time format pattern. For example, "h:mm a".
NameFormat
Formatting of names by the PCF file GlobalContactNameInputSet or GlobalPersonNameInputSet.
PCFMode Mode of the PCF file to use. The mode must exist. In the base configuration, there are two modes, default and Japan. The default value in the base configuration is default.
textFormatMode How to format the text. In the base configuration, Japan and France are possible values.
visibleFields Fields the user can see in the PCF file GlobalContactNameInputSet or GlobalPersonNameInputSet. For example, for France, the visible fields are "Prefix,FirstName,MiddleName,Particle,LastName,Suffix,Name".
CalendarWidget
Defines the year-month pattern used by the calendar widget.
yearMonth For example, for ja_JP, the value is "yyyyMM".