From 5efc1ec21ed5ba97164aad2ba9b8aefb90df96f6 Mon Sep 17 00:00:00 2001 From: Stefan Pluecken Date: Wed, 14 Dec 2005 23:10:55 +0000 Subject: fix translation of startwizard translate the window-title in the languageselection window when choosing a language translate some missing stuff --- lib/python/Screens/Wizard.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/python/Screens/Wizard.py') 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"): -- cgit v1.2.3