Skip to content
Permalink
Browse files
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
  • Loading branch information
timlinux committed Aug 5, 2008
1 parent 31c5b05 commit b4123d5f0bd294d25a1a6d7278fa8298dfe435d6
Showing with 5 additions and 3 deletions.
  1. +5 −3 src/app/main.cpp
@@ -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 );
@@ -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))

0 comments on commit b4123d5

Please sign in to comment.