From d2b1dcb3466ed5476094d9ff445d1df1b4ed14ff Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Fri, 18 Nov 2005 04:52:18 +0000 Subject: menu.xml and setup.xml are now translatable the .po-generation is really bad Makefile-code --- lib/python/Screens/Menu.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/python/Screens/Menu.py') diff --git a/lib/python/Screens/Menu.py b/lib/python/Screens/Menu.py index 9eefddf7..7554d814 100644 --- a/lib/python/Screens/Menu.py +++ b/lib/python/Screens/Menu.py @@ -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): -- cgit v1.2.3