[QGIS Commit] r8994 - trunk/qgis/src/app
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Aug 5 15:28:05 EDT 2008
Author: timlinux
Date: 2008-08-05 15:28:05 -0400 (Tue, 05 Aug 2008)
New Revision: 8994
Modified:
trunk/qgis/src/app/main.cpp
Log:
Dont display unneeded 'you are using i18n foo message' on startup
Modified: trunk/qgis/src/app/main.cpp
===================================================================
--- trunk/qgis/src/app/main.cpp 2008-08-05 15:28:58 UTC (rev 8993)
+++ trunk/qgis/src/app/main.cpp 2008-08-05 19:28:05 UTC (rev 8994)
@@ -376,7 +376,9 @@
#endif
if (!myUseGuiFlag)
{
- std::cerr << "QGIS starting in non-interactive mode not supported.\n You are seeing this message most likely because you have no DISPLAY environment variable set." << std::endl;
+ std::cerr << "QGIS starting in non-interactive mode not supported.\n You "
+ "are seeing this message most likely because you have no DISPLAY "
+ "environment variable set." << std::endl;
exit(1); //exit for now until a version of qgis is capabable of running non interactive
}
QgsApplication myApp(argc, argv, myUseGuiFlag );
@@ -463,8 +465,8 @@
}
#ifdef QGISDEBUG
- std::cout << "Setting translation to "
- << i18nPath.toLocal8Bit().data() << "/qgis_" << myTranslationCode.toLocal8Bit().data() << std::endl;
+ //std::cout << "Setting translation to "
+ // << i18nPath.toLocal8Bit().data() << "/qgis_" << myTranslationCode.toLocal8Bit().data() << std::endl;
#endif
QTranslator qgistor(0);
if (qgistor.load(QString("qgis_") + myTranslationCode, i18nPath))
More information about the QGIS-commit
mailing list