Changeset 27 in tspsg-svn for trunk/src/mainwindow.cpp


Ignore:
Timestamp:
Jun 23, 2009, 7:56:29 PM (15 years ago)
Author:
laleppa
Message:

+ Language is automatically loaded at application startup (based on user's locale name).
+ Full Ukrainian and Russian translation.

  • English is now default language.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mainwindow.cpp

    r26 r27  
    2626        #include <QPrintDialog>
    2727#endif // Q_OS_WINCE
    28 #include "defines.h"
    2928#include "mainwindow.h"
    3029
     
    124123                        row[c] = tspmodel->index(r,c).data(Qt::UserRole).toDouble(&ok);
    125124                        if (!ok) {
    126                                 QMessageBox(QMessageBox::Critical,trUtf8("Ошибка в данных"),QString(trUtf8("Ошибка в ячейке [Строка %1; Колонка %2]: Неверный формат данных.")).arg(r + 1).arg(c + 1),QMessageBox::Ok,this).exec();
     125                                QMessageBox(QMessageBox::Critical,trUtf8("Data error"),QString(trUtf8("Error in cell [Row %1; Column %2]: Invalid data format.")).arg(r + 1).arg(c + 1),QMessageBox::Ok,this).exec();
    127126                                return;
    128127                        }
     
    133132sStep *root = solver.solve(spinCities->value(),matrix);
    134133        if (!root)
    135                 QMessageBox(QMessageBox::Critical,trUtf8("Ошибка при решении"),trUtf8("Во время решения задачи возникла ошибка"),QMessageBox::Ok,this).exec();
     134                QMessageBox(QMessageBox::Critical,trUtf8("Solution error"),trUtf8("There was an error while solving the task."),QMessageBox::Ok,this).exec();
    136135        // tabWidget->setCurrentIndex(1);
    137136}
     
    147146\n\
    148147TSPSG is licensed under the terms of the GNU General Public License. You should have received a copy of the GNU General Public License along with TSPSG.").arg(QDate().toString("%Y"),QT_VERSION_STR,qVersion());
    149         QMessageBox(QMessageBox::Information,"About",about).exec();
     148        QMessageBox(QMessageBox::Information,"About",about,QMessageBox::Ok,this).exec();
    150149}
    151150
Note: See TracChangeset for help on using the changeset viewer.