diff options
Diffstat (limited to 'lib/python/Screens')
| -rw-r--r-- | lib/python/Screens/LanguageSelection.py | 9 | ||||
| -rw-r--r-- | lib/python/Screens/Wizard.py | 4 |
2 files changed, 7 insertions, 6 deletions
diff --git a/lib/python/Screens/LanguageSelection.py b/lib/python/Screens/LanguageSelection.py index a51c067a..a53bb97e 100644 --- a/lib/python/Screens/LanguageSelection.py +++ b/lib/python/Screens/LanguageSelection.py @@ -12,10 +12,11 @@ class LanguageSelection(Screen): Screen.__init__(self, session) self.list = [] - list = language.getLanguageList() - for x in language.lang: - print x - self.list.append(LanguageEntryComponent(x[2], x[0])) + if len(language.lang) == 0: # no language available => display only english + self.list.append(LanguageEntryComponent("en", _("English"))) + else: + for x in language.lang: + self.list.append(LanguageEntryComponent(x[2], x[0])) self["list"] = LanguageList(self.list) diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index 97b07bfd..e4f69290 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -29,7 +29,7 @@ class Wizard(Screen, HelpableScreen): self.lastStep = int(attrs.get('number')) self.wizard[self.lastStep] = {"text": "", "list": [], "config": {"screen": None, "args": None, "type": "" }, "code": ""} elif (name == "text"): - self.wizard[self.lastStep]["text"] = str(attrs.get('value')) + self.wizard[self.lastStep]["text"] = _(str(attrs.get('value'))) elif (name == "listentry"): self.wizard[self.lastStep]["list"].append((str(attrs.get('caption')), str(attrs.get('step')))) elif (name == "config"): @@ -160,7 +160,7 @@ class Wizard(Screen, HelpableScreen): self["step"].setText(_("Step ") + str(self.currStep) + "/" + str(self.numSteps)) self["stepslider"].setValue(self.currStep) - self["text"].setText(self.wizard[self.currStep]["text"]) + self["text"].setText(_(self.wizard[self.currStep]["text"])) if self.wizard[self.currStep]["code"] != "": print self.wizard[self.currStep]["code"] |
