dont crash when no language files avail
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 21 Mar 2006 20:22:55 +0000 (20:22 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Tue, 21 Mar 2006 20:22:55 +0000 (20:22 +0000)
lib/python/Components/Language.py

index 00577b1..588e01f 100644 (file)
@@ -29,11 +29,11 @@ class Language:
                        print "Activating language " + str(self.lang[index][0])
                        self.lang[index][1].install()
                        self.activeLanguage = index
+                       for x in self.callbacks:
+                               x()
                except:
                        print "Selected language does not exist!"
-               for x in self.callbacks:
-                       x()
-               
+
        def getLanguageList(self):
                list = []
                for x in self.lang: