add debug-msg
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 12 Dec 2005 00:44:38 +0000 (00:44 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 12 Dec 2005 00:44:38 +0000 (00:44 +0000)
lib/python/Components/Language.py
lib/python/Components/Network.py

index 0e7847a..480230d 100644 (file)
@@ -6,6 +6,7 @@ from Tools.Directories import *
 class Language:
        def __init__(self):
                gettext.install('enigma2', '/enigma2/po')
 class Language:
        def __init__(self):
                gettext.install('enigma2', '/enigma2/po')
+               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!"
                
index c38c44c..861d29e 100644 (file)
@@ -126,6 +126,7 @@ class Network:
                        ip = gethostbyname(gethostname()).split('.')
                except:
                        print "[Network.py] Could not get current ip (not necessarily an error)"
                        ip = gethostbyname(gethostname()).split('.')
                except:
                        print "[Network.py] Could not get current ip (not necessarily an error)"
+               print "[Network.py] got ip " + str(ip)
                return ip
 
 iNetwork = Network()
                return ip
 
 iNetwork = Network()