Skip to content

Commit

Permalink
Dont display unneeded 'you are using i18n foo message' on startup
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk@8994 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Aug 5, 2008
1 parent 31c5b05 commit b4123d5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/app/main.cpp
Expand Up @@ -376,7 +376,9 @@ int main(int argc, char *argv[])
#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 );
Expand Down Expand Up @@ -463,8 +465,8 @@ int main(int argc, char *argv[])
}

#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))
Expand Down

0 comments on commit b4123d5

Please sign in to comment.