b607cf3f98
- read the *region* and *zone* settings; this duplicates what the ViewStep does and is currently unused, but .. - add new support for using the system's TZ (rather than the fixed values from *region* and *zone*). This complements GeoIP lookup. This is the actual feature that started the long rewrite of the Config object (so that all the business logic would be in one place, usable for both widgets and QML). FIXES #1381
39 lines
945 B
YAML
39 lines
945 B
YAML
---
|
|
$schema: https://json-schema.org/schema#
|
|
$id: https://calamares.io/schemas/locale
|
|
additionalProperties: false
|
|
type: object
|
|
properties:
|
|
region: { type: string,
|
|
enum: [
|
|
Africa,
|
|
America,
|
|
Antarctica,
|
|
Arctic,
|
|
Asia,
|
|
Atlantic,
|
|
Australia,
|
|
Europe,
|
|
Indian,
|
|
Pacific
|
|
]
|
|
}
|
|
zone: { type: string }
|
|
useSystemTimezone: { type: boolean, default: false }
|
|
|
|
adjustLiveTimezone: { type: boolean, default: true }
|
|
|
|
localeGenPath: { type: string }
|
|
|
|
# TODO: refactor, this is reused in welcome
|
|
geoip:
|
|
additionalProperties: false
|
|
type: object
|
|
properties:
|
|
style: { type: string, enum: [ none, fixed, xml, json ] }
|
|
url: { type: string }
|
|
selector: { type: string }
|
|
required: [ style, url, selector ]
|
|
|
|
required: [ region, zone ]
|