From 1e589e37a991b29076e9a661f92dfa178421c208 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 24 Jun 2015 10:15:16 +0200 Subject: Unify translated error messages * Enclose file paths in "" * Localize file paths with QDir::toNativeSeparators. * Make sure sentences end with a '.' * Append error details always by ':', e.g. tr("Failed to copy file '%1': %2").(...) * Use 'directory' instead of 'folder' everywhere Change-Id: Ie045f429f72ad5045c96537465c5fb9d2e99d250 Reviewed-by: Karsten Heimrich --- src/libs/installer/settingsoperation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libs/installer/settingsoperation.cpp') diff --git a/src/libs/installer/settingsoperation.cpp b/src/libs/installer/settingsoperation.cpp index 9a9d7c471..2cb36bf48 100644 --- a/src/libs/installer/settingsoperation.cpp +++ b/src/libs/installer/settingsoperation.cpp @@ -69,7 +69,7 @@ bool SettingsOperation::checkArguments() if (!missingArguments.isEmpty()) { setError(InvalidArguments); - setErrorString(tr("Missing argument(s) '%1' calling '%2' with arguments '%3'.").arg( + setErrorString(tr("Missing argument(s) \"%1\" calling %2 with arguments \"%3\".").arg( missingArguments.join(QLatin1String("; ")), name(), arguments().join(QLatin1String("; ")))); return false; } @@ -79,7 +79,7 @@ bool SettingsOperation::checkArguments() if (!possibleMethodValues.contains(method)) { setError(InvalidArguments); - setErrorString(tr("Current method argument calling '%1' with arguments '%2' is not " + setErrorString(tr("Current method argument calling \"%1\" with arguments \"%2\" is not " "supported. Please use set, remove, add_array_value or remove_array_value.").arg(name(), arguments().join(QLatin1String("; ")))); return false; -- cgit v1.2.3