<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:
|
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,positivePatternDefine 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).zeroValueDefines 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.
longThe long date format pattern. For example, "E, MMM d, yyyy".mediumThe medium date format pattern. For example, "MMM d, yyyy".shortThe short date format pattern. For example, "MM/dd/yyyy". JapaneseImperialDateFormat- Japanese imperial calendar settings.
longLong Japanese imperial date format. mediumMedium Japanese imperial date format. shortShort Japanese imperial date format. yearSymbolJapanese year symbol. NumberFormat- Number formatter and parser configurations. Determines how PolicyCenter displays numbers.
decimalSymbolSymbol used to separate a whole number from its decimal fraction, usually a period or a comma. For example, ".".negativeEntryPatternFormat for entering negative numeric values. For example, "(#)".thousandsSymbolSymbol 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.
longLong time format pattern. For example, "h:mm:ss a z".mediumMedium time format pattern. For example, "hh:mm:ss a".shortShort time format pattern. For example, "h:mm a". NameFormat- Formatting of names by the PCF file
GlobalContactNameInputSetorGlobalPersonNameInputSet.PCFModeMode of the PCF file to use. The mode must exist. In the base configuration, there are two modes, defaultandJapan. The default value in the base configuration isdefault.textFormatModeHow to format the text. In the base configuration, JapanandFranceare possible values.visibleFieldsFields the user can see in the PCF file GlobalContactNameInputSetorGlobalPersonNameInputSet. 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.
yearMonthFor example, for ja_JP, the value is"yyyyMM".
