honor horizontal alignment also when a mark is present
[enigma2.git] / lib / python / Components / SetupDevices.py
index 6ce8737ba50bffb0b2dbf21621d0aae920f4f72a..9036fa63f0560780afba9636772410b63ab43d7f 100644 (file)
@@ -2,7 +2,7 @@
 from config import config                              #global config instance
 from config import configElement
 from config import ConfigSubsection
-from config import ConfigSlider
+from config import configSlider
 from config import configSelection
 from config import configText
 from Components.Timezones import timezones
@@ -18,30 +18,30 @@ def InitSetupDevices():
        config.timezone.val.addNotifier(timezoneNotifier)
 
        config.rc = ConfigSubsection();
-       config.rc.map = configElement("config.rc.map", configSelection, 0, ("Default", "Classic") );
+       config.rc.map = configElement("config.rc.map", configSelection, 0, (_("Default"), _("Classic")) );
 
        config.keyboard = ConfigSubsection();
-       config.keyboard.keymap = configElement("config.keyboard.keymap", configSelection, 1, ("English", "German") );
+       config.keyboard.keymap = configElement("config.keyboard.keymap", configSelection, 1, (_("English"), _("German")) );
 
        config.osd = ConfigSubsection();
-       config.osd.alpha = configElement("config.osd.alpha", ConfigSlider, 0, "");
-       config.osd.bright = configElement("config.osd.bright", ConfigSlider, 5, "");
-       config.osd.contrast = configElement("config.osd.contrast", ConfigSlider, 5, "");
+       config.osd.alpha = configElement("config.osd.alpha", configSlider, 0, (1, 10));
+       config.osd.bright = configElement("config.osd.bright", configSlider, 5, (1, 10));
+       config.osd.contrast = configElement("config.osd.contrast", configSlider, 5, (1, 10));
        
        def languageNotifier(configElement):
                language.activateLanguage(configElement.value)
        
-       config.osd.language = configElement("config.osd.language", configSelection, 0, language.getLanguageList() );
+       config.osd.language = configElement("config.osd.language", configText, "en_EN", 0);
        config.osd.language.addNotifier(languageNotifier)
 
        config.parental = ConfigSubsection();
-       config.parental.lock = configElement("config.parental.lock", configSelection, 1, ("Enable", "Disable") );
-       config.parental.setuplock = configElement("config.parental.setuplock", configSelection, 1, ("Enable", "Disable") );
+       config.parental.lock = configElement("config.parental.lock", configSelection, 1, (_("Enable"), _("Disable")) );
+       config.parental.setuplock = configElement("config.parental.setuplock", configSelection, 1, (_("Enable"), _("Disable")) );
 
        config.expert = ConfigSubsection();
        config.expert.splitsize = configElement("config.expert.splitsize", configSelection, 1, ("0.5Gbyte", "1.0 GByte", "1.5 GByte", "2.0 GByte") );
-       config.expert.satpos = configElement("config.expert.satpos", configSelection, 1, ("Enable", "Disable") );
-       config.expert.fastzap = configElement("config.expert.fastzap", configSelection, 0, ("Enable", "Disable") );
-       config.expert.skipconfirm = configElement("config.expert.skipconfirm", configSelection, 1, ("Enable", "Disable") );
-       config.expert.hideerrors = configElement("config.expert.hideerrors", configSelection, 1, ("Enable", "Disable") );
-       config.expert.autoinfo = configElement("config.expert.autoinfo", configSelection, 1, ("Enable", "Disable") );
+       config.expert.satpos = configElement("config.expert.satpos", configSelection, 1, (_("Enable"), _("Disable")) );
+       config.expert.fastzap = configElement("config.expert.fastzap", configSelection, 0, (_("Enable"), _("Disable")) );
+       config.expert.skipconfirm = configElement("config.expert.skipconfirm", configSelection, 1, (_("Enable"), _("Disable")) );
+       config.expert.hideerrors = configElement("config.expert.hideerrors", configSelection, 1, (_("Enable"), _("Disable")) );
+       config.expert.autoinfo = configElement("config.expert.autoinfo", configSelection, 1, (_("Enable"), _("Disable")) );