Skip to content

Commit

Permalink
[Menu/Setup] add "fix me" message for missing "text" attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Sep 9, 2023
1 parent 043b446 commit 6c460b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/python/Screens/Menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def addMenu(self, destList, node):
return
elif not SystemInfo.get(requires, False):
return
menu_text = _(node.get("text", "??"))
menu_text = _(node.get("text", "* fix me *"))
weight = node.get("weight", 50)
description = node.get("description", "") or None
description = description and _(description)
Expand Down Expand Up @@ -155,7 +155,7 @@ def addItem(self, destList, node):
conditional = node.get("conditional")
if conditional and not eval(conditional):
return
item_text = _(node.get("text", "* Undefined *"))
item_text = _(node.get("text", "* fix me *"))
weight = node.get("weight", 50)
description = node.get("description", "") or None
description = description and _(description)
Expand Down
4 changes: 2 additions & 2 deletions lib/python/Screens/Setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ def addItems(self, parentNode, including=True):

def addItem(self, element):
if self.pluginLanguageDomain:
itemText = dgettext(self.pluginLanguageDomain, element.get("text", "??"))
itemText = dgettext(self.pluginLanguageDomain, element.get("text", "* fix me *"))
itemDescription = dgettext(self.pluginLanguageDomain, element.get("description", " "))
else:
itemText = _(element.get("text", "??"))
itemText = _(element.get("text", "* fix me *"))
itemDescription = _(element.get("description", " "))
item = eval(element.text or "")
if item == "":
Expand Down

0 comments on commit 6c460b3

Please sign in to comment.