Changeset fe5dac7 in confclerk_git


Ignore:
Timestamp:
01/23/17 21:48:23 (5 years ago)
Author:
Philipp Spitzer <philipp@…>
Branches:
master, qt5
Children:
57bb19b
Parents:
6984e9d
git-author:
Philipp Spitzer <philipp@…> (01/23/17 21:47:40)
git-committer:
Philipp Spitzer <philipp@…> (01/23/17 21:48:23)
Message:

Used tr() for some more GUI strings (there are plenty more that should be treated this way).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gui/mainwindow.cpp

    r6984e9d rfe5dac7  
    272272    systemTrayIcon->show();
    273273    // The next two lines are to prevent a very strange position of the message box the first time at X11/aweseome (not Win32/XP)
    274     systemTrayIcon->showMessage("ConfClerk", "Your upcoming events", QSystemTrayIcon::Information);
     274    systemTrayIcon->showMessage("ConfClerk", tr("Your upcoming events"), QSystemTrayIcon::Information);
    275275    qApp->processEvents();
    276276    systemTrayIcon->showMessage(title, message, QSystemTrayIcon::Information, 60*60*24*1000);
     
    433433void MainWindow::networkQueryFinished(QNetworkReply *aReply) {
    434434    if (aReply->error() != QNetworkReply::NoError) {
    435         error_message(QString("Error occurred during download: ") + aReply->errorString());
     435        error_message(tr("Error occurred during download: %1").arg(aReply->errorString()));
    436436    } else {
    437437        QUrl redirectUrl = aReply->attribute(QNetworkRequest::RedirectionTargetAttribute).toUrl();
     
    441441                return; // don't enable controls
    442442            } else {
    443                 error_message(QString("Error: Cyclic redirection from %1 to itself.").arg(redirectUrl.toString()));
     443                error_message(tr("Error: Cyclic redirection from %1 to itself.").arg(redirectUrl.toString()));
    444444            }
    445445        } else {
Note: See TracChangeset for help on using the changeset viewer.