add "divx" as known file extension
[enigma2.git] / lib / python / Components / SetupDevices.py
1 from config import config, ConfigSelection, ConfigSubsection, ConfigOnOff, ConfigText
2 from Components.Timezones import timezones
3 from Components.Language import language
4
5 def InitSetupDevices():
6         
7         def timezoneNotifier(configElement):
8                 timezones.activateTimezone(configElement.index)
9                 
10         config.timezone = ConfigSubsection();
11         config.timezone.val = ConfigSelection(default = timezones.getDefaultTimezone(), choices = timezones.getTimezoneList())
12         config.timezone.val.addNotifier(timezoneNotifier)
13
14         config.keyboard = ConfigSubsection();
15         config.keyboard.keymap = ConfigSelection(choices = [("en", _("English")), ("de",_("German"))])
16
17         def languageNotifier(configElement):
18                 language.activateLanguage(configElement.value)
19         
20         config.osd = ConfigSubsection()
21         config.osd.language = ConfigText(default = "en_EN");
22         config.osd.language.addNotifier(languageNotifier)
23
24         config.parental = ConfigSubsection();
25         config.parental.lock = ConfigOnOff(default = False)
26         config.parental.setuplock = ConfigOnOff(default = False)
27
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)