Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Configuration > localization

localization

Localization affects how locale-specific things are shown and formatted. Functions mentioned below, from the anvil.runtime module, will change the value of the property for the currently executing thread. Changing them will not affect the localization preference or other threads.

Attributes
name default description
timezone GMT

Time zone, in GMT[+|-]hh[[:]mm] format, or as the time zone ID, such as EET.

This setting can be acquired with anvil.runtime.getTimeZone() and overridden with anvil.runtime.setTimeZone().

locale EN

Locale represents geographical, political, or cultural region. It is given as an ISO-3166 country code, found in http://www.chemie.fu-berlin.de/diverse/doc/ISO_3166.html

This setting can be acquired with anvil.runtime.getLocale() and overridden with anvil.runtime.setLocale().

language en

Language represents language of region. It is given as an ISO-639 language code, found in http://www.ics.uci.edu/pub/ietf/http/related/iso639.txt.

This setting can be acquired with anvil.runtime.getLanguage() and overridden with anvil.runtime.setLanguage().


Example:
  localization:
    timezone   = EET
    locale     = FI
    language   = fi
    dictionary = lingo
  end
See also  | Configuration
Contributes notes:
Add a note
What's new | Anvil