/* * TSPSG - TSP Solver and Generator * Copyright (C) 2007-2009 Lёppa * * $Id: main.cpp 17 2009-06-15 15:10:25Z laleppa $ * $URL: https://tspsg.svn.sourceforge.net/svnroot/tspsg/trunk/src/main.cpp $ * * This file is part of TSPSG. * * TSPSG is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * TSPSG is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with TSPSG. If not, see . */ #include #include #include #include "mainwindow.h" int main(int argc, char *argv[]) { QApplication app(argc, argv); /*/ i18n // TODO: Make English as program's "native" language QLocale *qlocale = &QLocale::system(); QTranslator translator; // Getting current locale languge name and trying to load it if (translator.load(qlocale->languageToString(qlocale->language()),"i18n")) app.installTranslator(&translator); // If language loading failed and locale language is not // application's "native" we're trying to load English else if (qlocale->languageToString(qlocale->language()).compare("Russian") && translator.load("English","i18n")) app.installTranslator(&translator); //*/ MainWindow mainwindow; mainwindow.show(); return app.exec(); }