diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-18 14:36:08 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2022-10-19 08:16:30 +0200 |
commit | 5ab4523851ba0dff863dca84227c22a4ceb35776 (patch) | |
tree | de8a31240ad4e469abdeff9a6792c1a077d9f884 /src/libs | |
parent | abafe6d2e1b96fd5899854e7e4dd8c2827c774bd (diff) |
Fix some translated texts
Fix place holders and count.
Change-Id: I4cb4508d2cd24706266dc82872345e7ffbc36174
Reviewed-by: Arttu Tarkiainen <arttu.tarkiainen@qt.io>
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/installer/fileutils.cpp | 2 | ||||
-rw-r--r-- | src/libs/installer/metadatajob.cpp | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/src/libs/installer/fileutils.cpp b/src/libs/installer/fileutils.cpp index 6bd79d4dd..0a2ead07e 100644 --- a/src/libs/installer/fileutils.cpp +++ b/src/libs/installer/fileutils.cpp @@ -120,7 +120,7 @@ void TempPathDeleter::releaseAndDelete(const QString &path) QFile file(path); if (file.exists() && !file.remove()) { throw Error(QCoreApplication::translate("QInstaller", - "Cannot remove file \"%1\": %3").arg(file.fileName(), file.errorString())); + "Cannot remove file \"%1\": %2").arg(file.fileName(), file.errorString())); } } catch (const Error &e) { qCritical() << Q_FUNC_INFO << "Exception caught:" << e.message(); diff --git a/src/libs/installer/metadatajob.cpp b/src/libs/installer/metadatajob.cpp index beddde6a3..a5be056a3 100644 --- a/src/libs/installer/metadatajob.cpp +++ b/src/libs/installer/metadatajob.cpp @@ -331,14 +331,16 @@ bool MetadataJob::updateCache() { const int toRegisterCount = m_fetchedMetadata.count(); if (toRegisterCount > 0) - emit infoMessage(this, tr("Updating local cache with %1 new items...").arg(toRegisterCount)); + emit infoMessage(this, tr("Updating local cache with %n new items...", + nullptr, toRegisterCount)); // Register items from current run to cache QStringList registeredKeys; for (auto *meta : qAsConst(m_fetchedMetadata)) { if (!m_metaFromCache.registerItem(meta, true)) { emitFinishedWithError(QInstaller::CacheError, m_metaFromCache.errorString() - + tr(" Clearing the cache directory and restarting the application may solve this.")); + + u' ' + + tr("Clearing the cache directory and restarting the application may solve this.")); return false; } meta->setPersistentRepositoryPath(meta->repository().url()); |