summaryrefslogtreecommitdiff
path: root/src/plugins/git/gitclient.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@digia.com>2013-09-12 16:37:29 +0200
committerTobias Hunger <tobias.hunger@digia.com>2013-09-13 10:12:26 +0200
commit4f9594ad038dc96e168903262c05e6ce83439c02 (patch)
treec0888fb98ae0fa365610a74b8783bb3cef0c6e1a /src/plugins/git/gitclient.cpp
parentd5a1bdc7fb911946e1f1d594a475e618f85264e1 (diff)
downloadqt-creator-4f9594ad038dc96e168903262c05e6ce83439c02.tar.gz
Git Show: Use %n for message and add Linguist comment.
Change-Id: I09af9ea6531af2f768e393f37e28962860b47e5c Reviewed-by: Orgad Shaneh <orgads@gmail.com> Reviewed-by: Jarek Kobus <jaroslaw.kobus@digia.com> Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
Diffstat (limited to 'src/plugins/git/gitclient.cpp')
-rw-r--r--src/plugins/git/gitclient.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/git/gitclient.cpp b/src/plugins/git/gitclient.cpp
index aeced497c2..33cecb85d2 100644
--- a/src/plugins/git/gitclient.cpp
+++ b/src/plugins/git/gitclient.cpp
@@ -2779,7 +2779,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;
- moreBranches = tr(" and %1 more").arg(branchCount - leave);
+ //: Displayed after the untranslated message "Branches: branch1, branch2 'and %n more'" in git show.
+ moreBranches = tr(" and %n more", 0, branchCount - leave);
branches.erase(branches.begin() + leave, branches.end());
}
if (!branches.isEmpty()) {