Skip to content

Commit

Permalink
[Setup] tweak text and description translation
Browse files Browse the repository at this point in the history
  • Loading branch information
Huevos committed Sep 10, 2023
1 parent 5cddd67 commit f1f5815
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/python/Screens/Setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,11 @@ def addItems(self, parentNode, including=True):

def addItem(self, element):
if self.pluginLanguageDomain:
itemText = dgettext(self.pluginLanguageDomain, element.get("text", "* fix me *"))
itemDescription = dgettext(self.pluginLanguageDomain, element.get("description", " "))
itemText = dgettext(self.pluginLanguageDomain, x) if (x := element.get("text")) else "* fix me *"
itemDescription = dgettext(self.pluginLanguageDomain, x) if (x := element.get("description")) else ""
else:
itemText = _(element.get("text", "* fix me *"))
itemDescription = _(element.get("description", " "))
itemText = _(x) if (x := element.get("text")) else "* fix me *"
itemDescription = _(x) if (x := element.get("description")) else ""
item = eval(element.text or "")
if item == "":
self.list.append((self.formatItemText(itemText),)) # Add the comment line to the config list.
Expand Down

0 comments on commit f1f5815

Please sign in to comment.