// show message
systemTrayIcon->show();
// The next two lines are to prevent a very strange position of the message box the first time at X11/aweseome (not Win32/XP)
- systemTrayIcon->showMessage("ConfClerk", "Your upcoming events", QSystemTrayIcon::Information);
+ systemTrayIcon->showMessage("ConfClerk", tr("Your upcoming events"), QSystemTrayIcon::Information);
qApp->processEvents();
systemTrayIcon->showMessage(title, message, QSystemTrayIcon::Information, 60*60*24*1000);
QApplication::alert(this);
if (QMessageBox::warning(
this,
- QString("SSL errors"),
- QString("One or more SSL errors have occurred: ") + errorString,
+ tr("SSL errors"),
+ tr("One or more SSL errors have occurred: %1", 0, errors.size()).arg(errorString),
QMessageBox::Ignore | QMessageBox::Cancel) == QMessageBox::Ignore) {
aReply->ignoreSslErrors();
} else {
void MainWindow::networkQueryFinished(QNetworkReply *aReply) {
if (aReply->error() != QNetworkReply::NoError) {
- error_message(QString("Error occurred during download: ") + aReply->errorString());
+ error_message(tr("Error occurred during download: %1").arg(aReply->errorString()));
} else {
QUrl redirectUrl = aReply->attribute(QNetworkRequest::RedirectionTargetAttribute).toUrl();
if (!redirectUrl.isEmpty()) {
importFromNetwork(redirectUrl.toString(), aReply->request().attribute(QNetworkRequest::User).toInt());
return; // don't enable controls
} else {
- error_message(QString("Error: Cyclic redirection from %1 to itself.").arg(redirectUrl.toString()));
+ error_message(tr("Error: Cyclic redirection from %1 to itself.").arg(redirectUrl.toString()));
}
} else {
importData(aReply->readAll(), aReply->url().toEncoded(), aReply->request().attribute(QNetworkRequest::User).toInt());