From 4f9594ad038dc96e168903262c05e6ce83439c02 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Thu, 12 Sep 2013 16:37:29 +0200 Subject: Git Show: Use %n for message and add Linguist comment. Change-Id: I09af9ea6531af2f768e393f37e28962860b47e5c Reviewed-by: Orgad Shaneh Reviewed-by: Jarek Kobus Reviewed-by: Tobias Hunger --- src/plugins/git/gitclient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins/git/gitclient.cpp') 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()) { -- cgit v1.2.1