1 from config import config, ConfigSelection, ConfigSubsection, ConfigOnOff, ConfigText
2 from Components.Timezones import timezones
3 from Components.Language import language
5 def InitSetupDevices():
7 def timezoneNotifier(configElement):
8 timezones.activateTimezone(configElement.index)
10 config.timezone = ConfigSubsection();
11 config.timezone.val = ConfigSelection(default = timezones.getDefaultTimezone(), choices = timezones.getTimezoneList())
12 config.timezone.val.addNotifier(timezoneNotifier)
14 config.keyboard = ConfigSubsection();
15 config.keyboard.keymap = ConfigSelection(choices = [("en", _("English")), ("de",_("German"))])
17 def languageNotifier(configElement):
18 language.activateLanguage(configElement.value)
20 config.osd = ConfigSubsection()
21 config.osd.language = ConfigText(default = "en_EN");
22 config.osd.language.addNotifier(languageNotifier)
24 config.parental = ConfigSubsection();
25 config.parental.lock = ConfigOnOff(default = False)
26 config.parental.setuplock = ConfigOnOff(default = False)
28 config.expert = ConfigSubsection();
29 config.expert.satpos = ConfigOnOff(default = True)
30 config.expert.fastzap = ConfigOnOff(default = True)
31 config.expert.skipconfirm = ConfigOnOff(default = False)
32 config.expert.hideerrors = ConfigOnOff(default = False)
33 config.expert.autoinfo = ConfigOnOff(default = True)