~mateo-salta/nitroshare/nitroshare

« back to all changes in this revision

Viewing changes to src/file/CFileReceiver.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:
84
84
    /* Ensure that the JSON map contains the name and list of files. */
85
85
    if(!map.contains("name") || !map.contains("files"))
86
86
    {
87
 
        emit Error("Unable to parse the JSON response sent from the client.");
 
87
        emit Error(tr("Unable to parse the JSON response sent from the client."));
88
88
        disconnectFromHost();
89
89
    }
90
90
 
148
148
 
149
149
        if(!dir.mkpath(dir.absolutePath()))
150
150
        {
151
 
            emit Error("Unable to create the directory for received files.");
 
151
            emit Error(tr("Unable to create the directory for received files."));
152
152
            return false;
153
153
        }
154
154
    }
162
162
    int index = data.indexOf(TerminatingCharacter);
163
163
    if(index == -1)
164
164
    {
165
 
        emit Error("Unable to extract CRC checksum from received file. Skipping file.");
 
165
        emit Error(tr("Unable to extract CRC checksum from received file. Skipping file."));
166
166
        return false;
167
167
    }
168
168
 
175
175
 
176
176
    if(orig_crc != calc_crc)
177
177
    {
178
 
        emit Error("CRC integrity check failed. Skipping file.");
 
178
        emit Error(tr("CRC integrity check failed. Skipping file."));
179
179
        return false;
180
180
    }
181
181