Skip to content

Commit b4123d5

Browse files
author
timlinux
committedAug 5, 2008
Dont display unneeded 'you are using i18n foo message' on startup
git-svn-id: http://svn.osgeo.org/qgis/trunk@8994 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 31c5b05 commit b4123d5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed
 

‎src/app/main.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,9 @@ int main(int argc, char *argv[])
376376
#endif
377377
if (!myUseGuiFlag)
378378
{
379-
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;
379+
std::cerr << "QGIS starting in non-interactive mode not supported.\n You "
380+
"are seeing this message most likely because you have no DISPLAY "
381+
"environment variable set." << std::endl;
380382
exit(1); //exit for now until a version of qgis is capabable of running non interactive
381383
}
382384
QgsApplication myApp(argc, argv, myUseGuiFlag );
@@ -463,8 +465,8 @@ int main(int argc, char *argv[])
463465
}
464466

465467
#ifdef QGISDEBUG
466-
std::cout << "Setting translation to "
467-
<< i18nPath.toLocal8Bit().data() << "/qgis_" << myTranslationCode.toLocal8Bit().data() << std::endl;
468+
//std::cout << "Setting translation to "
469+
// << i18nPath.toLocal8Bit().data() << "/qgis_" << myTranslationCode.toLocal8Bit().data() << std::endl;
468470
#endif
469471
QTranslator qgistor(0);
470472
if (qgistor.load(QString("qgis_") + myTranslationCode, i18nPath))

0 commit comments

Comments
 (0)
Please sign in to comment.