Fixes #3350: sync dialog new line was not translated
This commit is contained in:
@@ -94,7 +94,7 @@ QString SyncProcess::updateEntry(const QString & path, const QDir & source, cons
|
|||||||
else {
|
else {
|
||||||
if (!destinationInfo.exists()) {
|
if (!destinationInfo.exists()) {
|
||||||
// qDebug() << "Copy" << path << "to" << destinationPath;
|
// qDebug() << "Copy" << path << "to" << destinationPath;
|
||||||
progress->addText(tr("Copy %1 to %2\n").arg(path).arg(destinationPath));
|
progress->addText(tr("Copy %1 to %2").arg(path).arg(destinationPath) + "\n");
|
||||||
if (!QFile::copy(path, destinationPath)) {
|
if (!QFile::copy(path, destinationPath)) {
|
||||||
return QObject::tr("Copy '%1' to '%2' failed").arg(path).arg(destinationPath);
|
return QObject::tr("Copy '%1' to '%2' failed").arg(path).arg(destinationPath);
|
||||||
}
|
}
|
||||||
@@ -120,7 +120,7 @@ QString SyncProcess::updateEntry(const QString & path, const QDir & source, cons
|
|||||||
if (!destinationFile.open(QFile::WriteOnly)) {
|
if (!destinationFile.open(QFile::WriteOnly)) {
|
||||||
return QObject::tr("Write '%1' failed").arg(destinationPath);
|
return QObject::tr("Write '%1' failed").arg(destinationPath);
|
||||||
}
|
}
|
||||||
progress->addText(tr("Write %1\n").arg(destinationPath));
|
progress->addText(tr("Write %1").arg(destinationPath) + "\n");
|
||||||
// qDebug() << "Write" << destinationPath;
|
// qDebug() << "Write" << destinationPath;
|
||||||
QTextStream destinationStream(&destinationFile);
|
QTextStream destinationStream(&destinationFile);
|
||||||
destinationStream << sourceContents;
|
destinationStream << sourceContents;
|
||||||
|
|||||||
Reference in New Issue
Block a user