diff options
| author | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-17 21:27:22 +0000 |
|---|---|---|
| committer | Stefan Pluecken <stefan.pluecken@multimedia-labs.de> | 2005-11-17 21:27:22 +0000 |
| commit | bb59fd202b257cce05684912216678d9872ff0cc (patch) | |
| tree | d11bbb30084e1dda2c4fb3bde22daefa13f48ba5 /lib/python/Components/SetupDevices.py | |
| parent | db61b582764e79d2c0d1ea64fe54308494d13581 (diff) | |
| download | enigma2-bb59fd202b257cce05684912216678d9872ff0cc.tar.gz enigma2-bb59fd202b257cce05684912216678d9872ff0cc.zip | |
some basic language support (already working a bit)
Diffstat (limited to 'lib/python/Components/SetupDevices.py')
| -rw-r--r-- | lib/python/Components/SetupDevices.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/python/Components/SetupDevices.py b/lib/python/Components/SetupDevices.py index 612bb8c8..6ce8737b 100644 --- a/lib/python/Components/SetupDevices.py +++ b/lib/python/Components/SetupDevices.py @@ -6,6 +6,7 @@ from config import ConfigSlider from config import configSelection from config import configText from Components.Timezones import timezones +from Components.Language import language def InitSetupDevices(): @@ -26,7 +27,12 @@ def InitSetupDevices(): 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.language = configElement("config.osd.language", configSelection, 0, ("English", "English US") ); + + def languageNotifier(configElement): + language.activateLanguage(configElement.value) + + config.osd.language = configElement("config.osd.language", configSelection, 0, language.getLanguageList() ); + config.osd.language.addNotifier(languageNotifier) config.parental = ConfigSubsection(); config.parental.lock = configElement("config.parental.lock", configSelection, 1, ("Enable", "Disable") ); |
