Localization

The format operator (see the Formatting operator section) supports several options that can be customized to accommodate the local conventions of the country or region your xmlbase application is targeted to. These locale settings are stored in the special global structured variable locale that can be set using the {set} command (see the {set} section).

MeaningVariableDefaultDescription
Decimal separatorlocale.number.decimalseparator. (dot) Character used by the ##00.00 formatting pattern to separate the integer part of a fractional number from its fractional part.
Month nameslocale.date.monthnamesEnglish month names List of month names used by the M replacement character, starting with January and ending with December.
Weekday nameslocale.date.weekdaysEnglish weekday names List of weekday names used by the d replacement character, starting with Monday and ending with Sunday.

{# German weekdays #}
{set locale.date.weekdays to "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"}