~ci-train-bot/ubuntu-download-manager/ubuntu-download-manager-ubuntu-zesty-2267

« back to all changes in this revision

Viewing changes to src/downloads/priv/ubuntu/downloads/group_download.cpp

  • Committer: Bileto Bot
  • Author(s): Michael Sheldon
  • Date: 2016-09-09 11:47:50 UTC
  • mfrom: (370.1.2 translation-support)
  • Revision ID: ci-train-bot@canonical.com-20160909114750-899k9wtsrib6c7uq
Make user visible strings translatable (LP: #1618892)

Approved by: system-apps-ci-bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#include <QDir>
20
20
#include <QFileInfo>
21
21
#include <glog/logging.h>
 
22
#include <ubuntu/transfers/i18n.h>
22
23
#include <ubuntu/transfers/metadata.h>
23
24
#include <ubuntu/transfers/system/hash_algorithm.h>
24
25
#include "ubuntu/transfers/system/logger.h"
120
121
        } else {
121
122
            if (!HashAlgorithm::isValidAlgo(algo)) {
122
123
                setIsValid(false);
123
 
                setLastError(QString("Invalid hash algorithm: '%1'").arg(algo));
 
124
                setLastError(QString(_("Invalid hash algorithm: '%1'")).arg(algo));
124
125
                break;
125
126
            }
126
127
 
136
137
        QString localFilePath = singleDownload->filePath();
137
138
        if (localPaths.contains(localFilePath)) {
138
139
            setIsValid(false);
139
 
            setLastError("Duplicated local path passed: " + localFilePath);
 
140
            setLastError(_("Duplicated local path passed: ") + localFilePath);
140
141
            break;
141
142
        } else {
142
143
            localPaths.append(localFilePath);