- destList.append((ItemText, boundFunction(self.runScreen, (module, screen))))
- return
- elif x.tagName == 'code':
- destList.append((ItemText, boundFunction(self.execText, XMLTools.mergeText(x.childNodes))))
- return
- elif x.tagName == 'setup':
- id = getValbyAttr(x, "id")
- destList.append((ItemText, boundFunction(self.openSetup, id)))
- return
-
- destList.append((ItemText,self.nothing))
+ destList.append((_(item_text or "??"), boundFunction(self.runScreen, (module, screen))))
+ return
+ elif x.tagName == 'code':
+ destList.append((_(item_text or "??"), boundFunction(self.execText, XMLTools.mergeText(x.childNodes))))
+ return
+ elif x.tagName == 'setup':
+ id = x.getAttribute("id")
+ if item_text == "":
+ item_text = _(getSetupTitle(id)) + "..."
+ else:
+ item_text = _(item_text)
+ destList.append((item_text, boundFunction(self.openSetup, id)))
+ return
+
+ destList.append((item_text,self.nothing))