Locale
The Locale element specifies the locales, or regional language types,
supported within your gadget. There may be many Locale nodes within a single gadget if it
supports many international countries and languages.
Locale may take the following
form:
<ModulePrefs>
<Locale lang="en" country="us" />
</ModulePrefs>In addition to basic locale identifiers, a number of attributes
may be tied in with a Locale node, as
shown in Table 3-4.
Table 3-4. Locale attributes
Attribute | Description |
|---|---|
| The country associated with the locale supported. Countries are specified as two-digit codes based on ISO 3166-1 standards; for more details, see http://en.wikipedia.org/wiki/ISO_3166-1. |
| The language associated with the locale. This is an optional
field, but one of either |
| The text-reading
direction that the language dictates. The values
for this field can be either
|
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access