- config.osd.language = configElement("config.osd.language", configSelection, 0, ("English", "English US") );
-
- config.lcd = ConfigSubsection();
- config.lcd.bright = configElement("config.lcd.bright", ConfigSlider, 7, "");
- config.lcd.contrast = configElement("config.lcd.contrast", ConfigSlider, 2, "");
- config.lcd.standby = configElement("config.lcd.standby", ConfigSlider, 1, "");
- config.lcd.invert = configElement("config.lcd.invert", configSelection, 1, ("Enable", "Disable") );
-
- ilcd = LCD()
-
- def setLCDbright(configElement):
- ilcd.setBright(configElement.value);
-
- def setLCDcontrast(configElement):
- ilcd.setContrast(configElement.value);
-
- config.lcd.bright.addNotifier(setLCDbright);
- config.lcd.contrast.addNotifier(setLCDcontrast);
+
+ def languageNotifier(configElement):
+ language.activateLanguage(configElement.value)
+
+ config.osd.language = configElement("config.osd.language", configSelection, 0, language.getLanguageList() );
+ config.osd.language.addNotifier(languageNotifier)