diff main/main.cpp @ 433:ae68fc09bf16 debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:56 +0100
parents e1bde903c65c
children 868f73825b37
line wrap: on
line diff
--- a/main/main.cpp	Thu May 12 17:32:07 2011 +0100
+++ b/main/main.cpp	Mon May 16 17:19:56 2011 +0100
@@ -297,7 +297,7 @@
 
     QTranslator qtTranslator;
     QString qtTrName = QString("qt_%1").arg(language);
-    std::cerr << "Loading " << qtTrName << "... ";
+    DEBUG << "Loading " << qtTrName << "... ";
     bool success = false;
     if (!(success = qtTranslator.load(qtTrName))) {
         QString qtDir = getenv("QTDIR");
@@ -307,7 +307,7 @@
         }
     }
     if (!success) {
-        std::cerr << "Failed\nFailed to load Qt translation for locale" << std::endl;
+        DEBUG << "Failed\nFailed to load Qt translation for locale" << endl;
     } else {
         std::cerr << "Done" << std::endl;
     }
@@ -315,9 +315,9 @@
 
     QTranslator svTranslator;
     QString svTrName = QString("sonic-visualiser_%1").arg(language);
-    std::cerr << "Loading " << svTrName << "... ";
+    DEBUG << "Loading " << svTrName << "... ";
     svTranslator.load(svTrName, ":i18n");
-    std::cerr << "Done" << std::endl;
+    DEBUG << "Done" << endl;
     application.installTranslator(&svTranslator);
 
     StoreStartupLocale();