[PC-BSD Commits] r5555 - pcbsd/trunk/CrashHandler

svn at pcbsd.org svn at pcbsd.org
Fri Dec 11 08:52:49 PST 2009


Author: kris
Date: 2009-12-11 08:52:49 -0800 (Fri, 11 Dec 2009)
New Revision: 5555

Modified:
   pcbsd/trunk/CrashHandler/crashhandler.cpp
   pcbsd/trunk/CrashHandler/crashhandler.ui
Log:

Updatec CrashHandler to get rid of a troublesome string for Pootle



Modified: pcbsd/trunk/CrashHandler/crashhandler.cpp
===================================================================
--- pcbsd/trunk/CrashHandler/crashhandler.cpp	2009-12-11 16:22:51 UTC (rev 5554)
+++ pcbsd/trunk/CrashHandler/crashhandler.cpp	2009-12-11 16:52:49 UTC (rev 5555)
@@ -16,8 +16,9 @@
 void CrashHandler::setup( QString name, QString stdout, QString stderr )
 {
     //Alter the dialog to display our program name, placeholder is # so just replace that.
-    text->setText(text->text().replace("#", name));
-    
+    text->setText(tr("PC-BSD encountered an error while running:") + " <b>" + name + "</b><br><br>" \
+                  + tr("For more information on this error, click Details.") );
+
     //Read files
     QFile file(stdout);
     if ( file.open( IO_ReadOnly ) ) {

Modified: pcbsd/trunk/CrashHandler/crashhandler.ui
===================================================================
--- pcbsd/trunk/CrashHandler/crashhandler.ui	2009-12-11 16:22:51 UTC (rev 5554)
+++ pcbsd/trunk/CrashHandler/crashhandler.ui	2009-12-11 16:52:49 UTC (rev 5555)
@@ -77,9 +77,7 @@
         <enum>QFrame::Plain</enum>
        </property>
        <property name="text" >
-        <string>PC-BSD encountered an error while trying to start &lt;b>#&lt;/b>&lt;br>&lt;br>
-
-If you often see this message, there is a problem with this application. For more information on this error, click 'Details'.</string>
+        <string></string>
        </property>
        <property name="alignment" >
         <set>Qt::AlignVCenter</set>



More information about the Commits mailing list