X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/acab01604673e3fb0d13e47f9ffb5c32e8d9dd07..72c8ba6c4d1cceadae9e12d79d3532258614a97e:/lib/python/Screens/Setup.py diff --git a/lib/python/Screens/Setup.py b/lib/python/Screens/Setup.py index c6df96a1..d6215afd 100644 --- a/lib/python/Screens/Setup.py +++ b/lib/python/Screens/Setup.py @@ -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,