[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [plasmate/terietor/tools] engineexplorer: Improve & fix bug in messagebox service result formatting
From:       Shaun Reich <shaun.reich () kdemail ! net>
Date:       2012-08-16 18:41:51
Message-ID: 20120816184151.9F8F8A60F5 () git ! kde ! org
[Download RAW message or body]

Git commit 1fc5789de127b980670f136cf8361576c9aba3b7 by Shaun Reich.
Committed on 14/01/2012 at 05:18.
Pushed by tsiapaliwkas into branch 'terietor/tools'.

Improve & fix bug in messagebox service result formatting syntax

M  +4    -4    engineexplorer/serviceviewer.cpp

http://commits.kde.org/plasmate/1fc5789de127b980670f136cf8361576c9aba3b7

diff --git a/engineexplorer/serviceviewer.cpp b/engineexplorer/serviceviewe=
r.cpp
index 75fc02e..a620563 100644
--- a/engineexplorer/serviceviewer.cpp
+++ b/engineexplorer/serviceviewer.cpp
@@ -174,8 +174,8 @@ void ServiceViewer::operationResult(Plasma::ServiceJob =
*job)
 =

     if (job->error()) {
         KMessageBox::information(this,
-                                 i18n("%1 operation with destination %2 fa=
iled. "
-                                      "The error was:<p><b>%3</b>", job->o=
perationName(), job->destination(),
+                                 i18n("<b>'%1</b> operation with destinati=
on <b>'%2'</b> failed. "
+                                      "<p>The error was: <b>'%3'</b></p>",=
 job->operationName(), job->destination(),
                                       QString::number(job->error()) + ": "=
 + job->errorString()),
                                  i18n("Operation Result"));
     } else {
@@ -185,8 +185,8 @@ void ServiceViewer::operationResult(Plasma::ServiceJob =
*job)
         }
 =

         KMessageBox::information(this,
-                                 i18n("%1 operation with destination %2 re=
turned successfully. "
-                                      "The result was:<p><b>%3</b>", job->=
operationName(),
+                                 i18n("<b>'%1'</b> operation with destinat=
ion <b>'%2'</b> returned successfully. "
+                                      "<p>The result was: <b>'%3'</b></p>"=
, job->operationName(),
                                       job->destination(), result),
                                  i18n("Operation Result"));
     }

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic