From 463d467f8566a39609665f58e663817811a134a8 Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Thu, 10 Jan 2013 04:54:31 +0100 Subject: [PATCH] Translate \n into
for error messages This way we can display the error message like it was meant to be read. REVIEW: 108123 --- applet.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/applet.cpp b/applet.cpp index f7358d1d2..14a779cea 100644 --- a/applet.cpp +++ b/applet.cpp @@ -2973,7 +2973,9 @@ QString AppletPrivate::visibleFailureText(const QString &reason) if (reason.isEmpty()) { text = i18n("This object could not be created."); } else { - text = i18n("This object could not be created for the following reason:

%1

", reason); + QString r = reason; + r.replace('\n', "
"); + text = i18n("This object could not be created for the following reason:

%1

", r); } return text;