summaryrefslogtreecommitdiffstats
path: root/src/libs/installer/simplemovefileoperation.cpp
diff options
context:
space:
mode:
authorNiels Weber <niels.weber@digia.com>2013-02-05 12:08:18 +0100
committerNiels Weber <niels.weber@digia.com>2013-02-07 16:43:33 +0100
commit1d7e30eca88a14c4a7a6333e51d70f8186c9e54a (patch)
tree4bf299eecc9793a3d4597e0f9df7d9be5a7d7c94 /src/libs/installer/simplemovefileoperation.cpp
parentb32aa577b9647a79537e9218748c9987d2129728 (diff)
Typos, style and language improvements.
Change-Id: Ibc7d4ea8319b48b908adad75aa3a43858667cdde Reviewed-by: Tim Jenssen <tim.jenssen@digia.com>
Diffstat (limited to 'src/libs/installer/simplemovefileoperation.cpp')
-rw-r--r--src/libs/installer/simplemovefileoperation.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libs/installer/simplemovefileoperation.cpp b/src/libs/installer/simplemovefileoperation.cpp
index 41037d286..ae415b058 100644
--- a/src/libs/installer/simplemovefileoperation.cpp
+++ b/src/libs/installer/simplemovefileoperation.cpp
@@ -69,7 +69,7 @@ bool SimpleMoveFileOperation::performOperation()
if (source.isEmpty() || target.isEmpty()) {
setError(UserDefinedError);
- setErrorString(tr("None of the arguments can be empty: source(%1), target(%2).")
+ setErrorString(tr("None of the arguments can be empty: source (%1), target (%2).")
.arg(source, target));
return false;
}
@@ -80,7 +80,7 @@ bool SimpleMoveFileOperation::performOperation()
if (file.exists()) {
if (!file.remove()) {
setError(UserDefinedError);
- setErrorString(tr("Can not copy source(%1) to target(%2), because target exists and is "
+ setErrorString(tr("Can not move source '%1' to target '%2', because target exists and is "
"not removable.").arg(source, target));
return false;
}
@@ -89,12 +89,12 @@ bool SimpleMoveFileOperation::performOperation()
file.setFileName(source);
if (!file.rename(target)) {
setError(UserDefinedError);
- setErrorString(tr("Can not move source(%1) to target(%2): %3").arg(source, target,
+ setErrorString(tr("Can not move source '%1' to target '%2': %3").arg(source, target,
file.errorString()));
return false;
}
- emit outputTextChanged(tr("Move %1 to %2.").arg(source, target));
+ emit outputTextChanged(tr("Move '%1' to '%2'.").arg(source, target));
return true;
}
@@ -104,7 +104,7 @@ bool SimpleMoveFileOperation::undoOperation()
const QString target = arguments().at(1);
QFile(target).rename(source);
- emit outputTextChanged(tr("Move %1 to %2.").arg(target, source));
+ emit outputTextChanged(tr("Move '%1' to '%2'.").arg(target, source));
return true;
}