%s/Configmode/Configuration Mode/g
[enigma2.git] / lib / python / Screens / Satconfig.py
index 8748438af344d7a10b821ef8a9c36b6137f298e6..97908a064f7a54a352bb4aa63691f233a2fa1343 100644 (file)
@@ -34,7 +34,7 @@ class NimSetup(Screen):
                self.list = [ ]
                
                if (nimmanager.getNimType(self.nim.slotid) == nimmanager.nimType["DVB-S"]):
-                       self.list.append(getConfigListEntry(_("Configmode"), config.Nims[self.nim.slotid].configMode))
+                       self.list.append(getConfigListEntry(_("Configuration Mode"), config.Nims[self.nim.slotid].configMode))
                        
                        if config.Nims[self.nim.slotid].configMode.value == 0:                  #simple setup
                                self.list.append(getConfigListEntry(_("Diseqcmode"), config.Nims[self.nim.slotid].diseqcMode))
@@ -61,11 +61,11 @@ class NimSetup(Screen):
        def newConfig(self):    
                if self["config"].getCurrent()[0] == _("Diseqcmode"):
                        self.createSetup()
-               if self["config"].getCurrent()[0] == _("Configmode"):
+               if self["config"].getCurrent()[0] == _("Configuration Mode"):
                        self.createSetup()
                
        def keyLeft(self):
-               if self["config"].getCurrent()[0] == _("Configmode"):
+               if self["config"].getCurrent()[0] == _("Configuration Mode"):
                        if self.nim.slotid == 0:
                                return
                self["config"].handleKey(config.key["prevElement"])
@@ -75,7 +75,7 @@ class NimSetup(Screen):
                #forbid to enable advanced mode until its ready
                #perhaps its better to use an own element here
                #this suckz .. how enable advanced config?
-               if self["config"].getCurrent()[0] == _("Configmode"):
+               if self["config"].getCurrent()[0] == _("Configuration Mode"):
                        if self.nim.slotid == 0:
                                return
 
@@ -87,10 +87,13 @@ class NimSetup(Screen):
                if (self["config"].getCurrent()[1].parent.enabled == True):
                        self["config"].handleKey(config.key[str(number)])
 
-       def keySave(self):
+       def run(self):
                for x in self["config"].list:
                        x[1].save()
                nimmanager.sec.update() 
+
+       def keySave(self):
+               self.run()
                self.close()
 
        def keyCancel(self):
@@ -142,4 +145,4 @@ class NimSelection(Screen):
                selection = self["nimlist"].getCurrent()
                if selection[1].nimType != -1:  #unknown/empty
                        self.session.open(NimSetup, selection[1].slotid)
-       
\ No newline at end of file
+