forked from qt-creator/qt-creator
Improve translatable strings
Change-Id: I0104209bb0f865a48f9ca2524f62457f7524bba9 Reviewed-by: André Hartmann <aha_1980@gmx.de> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
@@ -1155,7 +1155,7 @@ void ClangTool::updateForCurrentState()
|
||||
const bool hasErrorText = !m_infoBarWidget->errorText().isEmpty();
|
||||
const bool hasErrors = m_filesFailed > 0;
|
||||
if (hasErrors && !hasErrorText) {
|
||||
const QString text = makeLink( tr("Failed to analyze %1 files.").arg(m_filesFailed));
|
||||
const QString text = makeLink(tr("Failed to analyze %n file(s).", nullptr, m_filesFailed));
|
||||
m_infoBarWidget->setError(InfoBarWidget::Warning, text, [this]() { showOutputPane(); });
|
||||
}
|
||||
|
||||
@@ -1171,9 +1171,8 @@ void ClangTool::updateForCurrentState()
|
||||
if (m_filesCount == 0) {
|
||||
infoText = tr("Analyzing..."); // Not yet fully started/initialized
|
||||
} else {
|
||||
infoText = tr("Analyzing... %1 of %2 files processed.")
|
||||
.arg(m_filesSucceeded + m_filesFailed)
|
||||
.arg(m_filesCount);
|
||||
infoText = tr("Analyzing... %1 of %n file(s) processed.", nullptr, m_filesCount)
|
||||
.arg(m_filesSucceeded + m_filesFailed);
|
||||
}
|
||||
break;
|
||||
case State::PreparationStarted:
|
||||
@@ -1186,7 +1185,7 @@ void ClangTool::updateForCurrentState()
|
||||
infoText = tr("Analysis stopped by user.");
|
||||
break;
|
||||
case State::AnalyzerFinished:
|
||||
infoText = tr("Finished processing %1 files.").arg(m_filesCount);
|
||||
infoText = tr("Finished processing %n file(s).", nullptr, m_filesCount);
|
||||
break;
|
||||
case State::ImportFinished:
|
||||
infoText = tr("Diagnostics imported.");
|
||||
|
||||
Reference in New Issue
Block a user