add ability to remove list and config from a wizard
[enigma2.git] / lib / python / Components / Language.py
index 0e7847a..c60b39b 100644 (file)
@@ -5,7 +5,8 @@ from Tools.Directories import *
 
 class Language:
        def __init__(self):
 
 class Language:
        def __init__(self):
-               gettext.install('enigma2', '/enigma2/po')
+               gettext.install('enigma2', '/enigma2/po', unicode=1)
+               self.activeLanguage = 0
                self.lang = []
                # FIXME make list dynamically
                self.addLanguage(_("English"), "en")
                self.lang = []
                # FIXME make list dynamically
                self.addLanguage(_("English"), "en")
@@ -21,6 +22,7 @@ class Language:
                try:
                        print "Activating language " + str(self.lang[index][0])
                        self.lang[index][1].install()
                try:
                        print "Activating language " + str(self.lang[index][0])
                        self.lang[index][1].install()
+                       self.activeLanguage = index
                except:
                        print "Selected language does not exist!"
                
                except:
                        print "Selected language does not exist!"