Export (0) Print
Expand All
Expand Minimize

Locale Element

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

Represents one locale.

<Locale
    language = "string"
    country = "string"
    variant = "string">
</Locale>

The following sections describe attributes, parent elements, and child elements.

Name

Description

language

string type. Length range 1-255 characters.

This attribute is required. The locales language is listed in the encoding specified in ISO 639 http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt. Letters must be in lowercase.

country

string type. Length range 1-255 characters.

This attribute is required. It contains the locales country, using the two-character encoding specified in ISO 3166 http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html. Letters must be in uppercase.

variant

string type. Length range 1-1023 characters.

This attribute is optional. It contains the locales variant. Where there are two variants, separate them with an underscore and put the most important one first.

Parent Elements

Element

Occurrence

LocaleOption

1

ListLocalesReply

1

Child Element

Element

Occurrence

None

Not applicable

The variant attribute is not currently used but is allowed.

Show:
© 2014 Microsoft