~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/file/CFileSender.cpp

  • Committer: Nathan Osman
  • Date: 2012-06-28 16:17:15 UTC
  • Revision ID: admin@quickmediasolutions.com-20120628161715-hot2y9wx30m0ezw9
Added tr() where appropriate to facilitate translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
106
106
    QVariantMap response = DecodeJSON(data);
107
107
    if(!response.contains("status") || response["status"] != "continue")
108
108
    {
109
 
        emit Error("The remote machine aborted the transfer.");
 
109
        emit Error(tr("The remote machine aborted the transfer."));
110
110
 
111
111
        disconnectFromHost();
112
112
        return;
149
149
        /* Check to see if we need to warn the user. */
150
150
        if(info.size() > 30000000 && compress && !displayed_prompt)
151
151
        {
152
 
            if(QMessageBox::warning(NULL, "Warning:", "Transferring files larger than 30 MB with compression enabled can significantly slow down your computer.\n\nWould you like to temporarily disable compression for these files?",
 
152
            if(QMessageBox::warning(NULL, tr("Warning:"), tr("Transferring files larger than 30 MB with compression enabled can significantly slow down your computer.\n\nWould you like to temporarily disable compression for these files?"),
153
153
                                    QMessageBox::Yes, QMessageBox::No) == QMessageBox::Yes)
154
154
                compress = false;
155
155