setTitle is now a Screen method
[enigma2.git] / lib / python / Screens / Setup.py
index c6df96a1998c91b71210d1869d0bdc31a7b29ad4..d6215afdad226e16c545cbe1691e9de5748d6b72 100644 (file)
@@ -4,6 +4,7 @@ from Components.config import config                            #global config instance
 from Components.config import configSelection
 from Components.ConfigList import ConfigList
 from Components.Label import Label
+from Components.Pixmap import Pixmap
 
 import xml.dom.minidom
 from xml.dom import EMPTY_NAMESPACE
@@ -38,7 +39,7 @@ class Setup(Screen):
                        if x.nodeType != xml.dom.minidom.Element.nodeType:
                                continue
                        elif x.tagName == 'item':
-                               ItemText = getValbyAttr(x, "text")
+                               ItemText = _(getValbyAttr(x, "text"))
                                b = eval(XMLTools.mergeText(x.childNodes));
                                print "item " + ItemText + " " + b.configPath
                                if b == "":
@@ -103,11 +104,13 @@ class Setup(Screen):
                
                self["config"] = ConfigList(list)
 
-               self["title"] = Label(myTitle);
-
-               self["ok"] = Label("OK")
-               self["cancel"] = Label("Cancel")
+               self["title"] = Label(_(myTitle));
 
+               self["oktext"] = Label(_("OK"))
+               self["canceltext"] = Label(_("Cancel"))
+               self["ok"] = Pixmap()
+               self["cancel"] = Pixmap()
+               
                self["actions"] = NumberActionMap(["SetupActions"], 
                        {
                                "cancel": self.keyCancel,