forked from qt-creator/qt-creator
Tr: Fix some plurals
Change-Id: I9d7a52a64536e6e1c0a9da4f3cb2f3a116afb6cd Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -721,7 +721,7 @@ expected_str<qint64> DesktopDeviceFileAccess::writeFileContents(const FilePath &
|
|||||||
qint64 res = file.write(data);
|
qint64 res = file.write(data);
|
||||||
if (res != data.size())
|
if (res != data.size())
|
||||||
return make_unexpected(
|
return make_unexpected(
|
||||||
Tr::tr("Could not write to file \"%1\" (only %2 of %3 bytes written).")
|
Tr::tr("Could not write to file \"%1\" (only %2 of %n byte(s) written).")
|
||||||
.arg(filePath.toUserOutput())
|
.arg(filePath.toUserOutput())
|
||||||
.arg(res)
|
.arg(res)
|
||||||
.arg(data.size()));
|
.arg(data.size()));
|
||||||
|
|||||||
@@ -327,7 +327,7 @@ void BoostTestOutputReader::processOutputLine(const QByteArray &outputLine)
|
|||||||
BoostTestResult result(id(), {}, m_projectFile);
|
BoostTestResult result(id(), {}, m_projectFile);
|
||||||
const int failed = match.captured(1).toInt();
|
const int failed = match.captured(1).toInt();
|
||||||
const int fatals = m_summary.value(ResultType::MessageFatal);
|
const int fatals = m_summary.value(ResultType::MessageFatal);
|
||||||
QString txt = Tr::tr("%1 failures detected in %2.").arg(failed).arg(match.captured(3));
|
QString txt = Tr::tr("%n failure(s) detected in %2.").arg(failed).arg(match.captured(3));
|
||||||
const int passed = qMax(0, m_testCaseCount - failed);
|
const int passed = qMax(0, m_testCaseCount - failed);
|
||||||
if (m_testCaseCount != -1)
|
if (m_testCaseCount != -1)
|
||||||
txt.append(' ').append(Tr::tr("%1 tests passed.").arg(passed));
|
txt.append(' ').append(Tr::tr("%1 tests passed.").arg(passed));
|
||||||
|
|||||||
@@ -567,8 +567,10 @@ static void checkNextFunctionForUnused(
|
|||||||
if (!search || findRefsFuture->isCanceled())
|
if (!search || findRefsFuture->isCanceled())
|
||||||
return;
|
return;
|
||||||
const int newProgress = findRefsFuture->progressValue() + 1;
|
const int newProgress = findRefsFuture->progressValue() + 1;
|
||||||
findRefsFuture->setProgressValueAndText(newProgress, Tr::tr("Checked %1 of %2 functions")
|
findRefsFuture->setProgressValueAndText(newProgress,
|
||||||
.arg(newProgress).arg(findRefsFuture->progressMaximum()));
|
Tr::tr("Checked %1 of %n function(s)")
|
||||||
|
.arg(newProgress)
|
||||||
|
.arg(findRefsFuture->progressMaximum()));
|
||||||
QVariantMap data = search->userData().toMap();
|
QVariantMap data = search->userData().toMap();
|
||||||
QVariant &activeLinks = data["active"];
|
QVariant &activeLinks = data["active"];
|
||||||
QVariantList activeLinksList = activeLinks.toList();
|
QVariantList activeLinksList = activeLinks.toList();
|
||||||
|
|||||||
Reference in New Issue
Block a user