aboutsummaryrefslogtreecommitdiff
path: root/lib/python
diff options
context:
space:
mode:
Diffstat (limited to 'lib/python')
-rw-r--r--lib/python/Screens/Menu.py6
-rw-r--r--lib/python/Screens/Setup.py2
2 files changed, 4 insertions, 4 deletions
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):
diff --git a/lib/python/Screens/Setup.py b/lib/python/Screens/Setup.py
index c6df96a1..b47418d8 100644
--- a/lib/python/Screens/Setup.py
+++ b/lib/python/Screens/Setup.py
@@ -38,7 +38,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 == "":