help: improve key description, a bit.
[enigma2.git] / lib / python / Screens / Menu.py
index 9eefddf71e75f5d039b67a3ff39f1f17f9ad3d91..7554d814b73d7cc2eee53416e1e78d46395dc47f 100644 (file)
@@ -87,14 +87,14 @@ class Menu(Screen):
                self.session.open(Setup, dialog)
 
        def addMenu(self, destList, node):
-               MenuTitle = getValbyAttr(node, "text")
+               MenuTitle = _(getValbyAttr(node, "text"))
                if MenuTitle != "":                                                                                                                                     #check for title
                        a = boundFunction(self.session.open, Menu, node, node.childNodes)
                        #TODO add check if !empty(node.childNodes)
                        destList.append((MenuTitle, a))
                
        def addItem(self, destList, node):
-               ItemText = getValbyAttr(node, "text")
+               ItemText = _(getValbyAttr(node, "text"))
                if ItemText != "":                                                                                                                                      #check for name
                        for x in node.childNodes:
                                if x.nodeType != xml.dom.minidom.Element.nodeType:
@@ -147,7 +147,7 @@ class Menu(Screen):
                
                a = getValbyAttr(parent, "title")
                if a == "":                                                                                                             #if empty use name
-                       a = getValbyAttr(parent, "text")
+                       a = _(getValbyAttr(parent, "text"))
                self["title"] = Header(a)
 
 class MainMenu(Menu):