diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp index 70d707813d4..507a11dbb4f 100644 --- a/src/plugins/git/gitclient.cpp +++ b/src/plugins/git/gitclient.cpp @@ -2876,8 +2876,8 @@ QString GitClient::extendedShowDescription(const QString &workingDirectory, cons // If there are more than 20 branches, list first 10 followed by a hint if (branchCount > 20) { const int leave = 10; - //: Displayed after the untranslated message "Branches: branch1, branch2 'and %1 more'" in git show. - moreBranches = QLatin1Char(' ') + tr("and %1 more", 0, branchCount - leave); + //: Displayed after the untranslated message "Branches: branch1, branch2 'and %n more'" in git show. + moreBranches = QLatin1Char(' ') + tr("and %n more", 0, branchCount - leave); branches.erase(branches.begin() + leave, branches.end()); } if (!branches.isEmpty()) {