diff options
author | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-06-24 10:15:16 +0200 |
---|---|---|
committer | Kai Koehne <kai.koehne@theqtcompany.com> | 2015-06-24 09:22:42 +0000 |
commit | 1e589e37a991b29076e9a661f92dfa178421c208 (patch) | |
tree | ccdae70edb75b1bc17f0efc61086e16554e3f4eb /src/libs/installer/testrepository.cpp | |
parent | 65a5d4d33c7dcb27ce99ce59535733a28991c544 (diff) |
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 <karsten.heimrich@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/testrepository.cpp')
-rw-r--r-- | src/libs/installer/testrepository.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libs/installer/testrepository.cpp b/src/libs/installer/testrepository.cpp index 1dcba41ae..10e2673e4 100644 --- a/src/libs/installer/testrepository.cpp +++ b/src/libs/installer/testrepository.cpp @@ -110,7 +110,7 @@ void TestRepository::doCancel() if (m_downloader) { QString errorString = m_downloader->errorString(); if (errorString.isEmpty()) - errorString = tr("Got a timeout while testing: '%1'").arg(m_repository.displayname()); + errorString = tr("Got a timeout while testing \"%1\".").arg(m_repository.displayname()); // at the moment the download sends downloadCompleted() if we cancel it, so just disconnect(m_downloader, 0, this, 0); m_downloader->cancelDownload(); @@ -130,15 +130,15 @@ void TestRepository::downloadCompleted() QString errorMsg; if (!doc.setContent(&file, &errorMsg)) { error = InvalidUpdatesXml; - errorMsg = tr("Could not parse Updates.xml! Error: %1.").arg(errorMsg); + errorMsg = tr("Cannot parse Updates.xml: %1").arg(errorMsg); } else { error = NoError; } } else { - errorMsg = tr("Updates.xml could not be opened for reading!"); + errorMsg = tr("Updates.xml could not be opened for reading."); } } else { - errorMsg = tr("Updates.xml could not be found on server!"); + errorMsg = tr("Updates.xml could not be found on server."); } if (error > NoError) |