Git commit 05a12eb791022ca895dfbc85be645fe72f2923b7 by Andrew Coles.
Pushed by coles into branch '1.2'.
Backported i18n fix (missing usage of plural form) to 1.2 branch.
CCMAIL: kde-i18n-doc@kde.org
M +5 -1 plugins/grepview/grepoutputmodel.cpp
http://commits.kde.org/1419bb81/05a12eb791022ca895dfbc85be645fe72f2923b7
diff --git a/plugins/grepview/grepoutputmodel.cpp b/plugins/grepview/grepoutputmodel.cpp
index 3afa47d..4f52b12 100644
--- a/plugins/grepview/grepoutputmodel.cpp
+++ b/plugins/grepview/grepoutputmodel.cpp
@@ -312,7 +312,11 @@ void GrepOutputModel::appendOutputs( const QString &filename, const GrepOutputIt
m_fileCount += 1;
m_matchCount += items.length();
- m_rootItem->setText(i18n("%1 matches in %2 files", m_matchCount, m_fileCount));
+
+ const QString matchText = i18np("1 match", "%1 matches", m_matchCount);
+ const QString fileText = i18np("1 file", "%1 files", m_fileCount);
+
+ m_rootItem->setText(i18nc("%1 is e.g. '4 matches', %2 is e.g. '1 file'", "%1 in %2", matchText, fileText));
QString fnString = i18np("%2 (one match)", "%2 (%1 matches)", items.length(), ICore::self()->projectController()->prettyFileName(filename));