beautify the ok, cancel and initialize buttons
[enigma2.git] / lib / python / Plugins / update.py
index a1525cf35240c772692e7a7b68a3b5ea2d7d3df0..b8ff6ec45fb542536d4c87c247b7c054bd3a983a 100644 (file)
@@ -16,7 +16,7 @@ class Example(Screen):
                self.skin = Example.skin
                Screen.__init__(self, session)
 
-               self["text"] = Label("Please press OK!")
+               self["text"] = Label(_("Please press OK!"))
                                
                self["actions"] = ActionMap(["WizardActions"], 
                {
@@ -28,13 +28,12 @@ class Example(Screen):
                self.session.openWithCallback(self.doUpdate, MessageBox, _("Do you want to update your Dreambox?\nAfter pressing OK, please wait!"))
                
        def doUpdate(self, val = False):
-               
                if val:
                        lines = os.popen("ipkg update && ipkg upgrade", "r").readlines()
                        string = ""
                        for x in lines:
                                string += x
-                       self["text"].setText("Updating finished. Here is the result:\n\n" + string)
+                       self["text"].setText(_("Updating finished. Here is the result:") + "\n\n" + string)
                else:
                        self.close()            
                
@@ -44,7 +43,7 @@ def main(session):
        
 
 def getPicturePath():
-               return ""
+               return "/usr/lib/enigma2/python/Plugins/update.png"
 
 def getPluginName():
                return "Softwareupdate"
\ No newline at end of file