Improve translatability of the application

Head towards a translatable application by loading translation files for
the current locale and using tr() where ever it's needed.
This commit is contained in:
Martin Kleusberg
2013-01-18 18:11:07 +01:00
parent 88e4b177a4
commit d05e90e495
12 changed files with 108 additions and 121 deletions

View File

@@ -68,7 +68,7 @@ void EditTableDialog::accept()
// Create table
if(!pdb->createTable(ui->editTableName->text(), tbl_structure))
{
QMessageBox::warning(this, QApplication::applicationName(), QString("Error creating table. Message from database engine:\n%1").arg(pdb->lastErrorMessage));
QMessageBox::warning(this, QApplication::applicationName(), tr("Error creating table. Message from database engine:\n%1").arg(pdb->lastErrorMessage));
return;
}
} else {