diff options
Diffstat (limited to 'lib/python')
| -rw-r--r-- | lib/python/Screens/LanguageSelection.py | 3 | ||||
| -rw-r--r-- | lib/python/Screens/Wizard.py | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/python/Screens/LanguageSelection.py b/lib/python/Screens/LanguageSelection.py index 79cd25fc..399e20ec 100644 --- a/lib/python/Screens/LanguageSelection.py +++ b/lib/python/Screens/LanguageSelection.py @@ -31,6 +31,7 @@ class LanguageSelection(Screen): language.activateLanguage(self["list"].l.getCurrentSelectionIndex()) config.osd.language.value = self["list"].l.getCurrentSelectionIndex() config.osd.language.save() + self.session.currentDialog.instance.setTitle(_("Language selection")) def updateList(self): self.list = [] @@ -41,7 +42,7 @@ class LanguageSelection(Screen): self.list.append(LanguageEntryComponent(x[2], _(x[0]))) self["list"].l.setList(self.list) - + def up(self): self["list"].instance.moveSelection(self["list"].instance.moveUp) self.run() diff --git a/lib/python/Screens/Wizard.py b/lib/python/Screens/Wizard.py index 7eda9b0b..0f8f1998 100644 --- a/lib/python/Screens/Wizard.py +++ b/lib/python/Screens/Wizard.py @@ -1,5 +1,7 @@ from Screen import Screen +import string + from Screens.HelpMenu import HelpableScreen from Components.Label import Label from Components.Slider import Slider @@ -29,7 +31,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"] = string.replace(str(attrs.get('value')), "\\n", "\n") elif (name == "listentry"): self.wizard[self.lastStep]["list"].append((str(attrs.get('caption')), str(attrs.get('step')))) elif (name == "config"): |
