From: Manoj <manojkumar148700@gmail.com>
To: git@vger.kernel.org
Cc: kaartic.sivaraam@gmail.com, Manoj <manojkumar148700@gmail.com>
Subject: [GSoC PATCH] pack-objects: use Q_() for delta thread count
Date: Sat, 28 Nov 2026 07:52:51 +0000 [thread overview]
Message-ID: <20261128075251.13852-1-manojkumar148700@gmail.com> (raw)
The progress message "Delta compression using up to %d threads" is
marked for translation with _(), which gives translators a single form
for every count. Languages with more than two plural forms cannot
translate it correctly.
Use Q_() with a singular and a plural form so the right one is picked
from delta_search_threads, as the "Path-based delta compression"
message in the same file already does.
The English output is unchanged, as this message is only shown when
more than one thread is used.
Signed-off-by: Manoj <manojkumar148700@gmail.com>
---
builtin/pack-objects.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/builtin/pack-objects.c b/builtin/pack-objects.c
index 87c3102e62..c33b075c77 100644
--- a/builtin/pack-objects.c
+++ b/builtin/pack-objects.c
@@ -3227,7 +3227,10 @@ static void ll_find_deltas(struct object_entry **list, unsigned list_size,
return;
}
if (progress > pack_to_stdout)
- fprintf_ln(stderr, _("Delta compression using up to %d threads"),
+ fprintf_ln(stderr,
+ Q_("Delta compression using up to %d thread",
+ "Delta compression using up to %d threads",
+ delta_search_threads),
delta_search_threads);
CALLOC_ARRAY(p, delta_search_threads);
--
2.43.0
reply other threads:[~2026-11-28 7:53 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261128075251.13852-1-manojkumar148700@gmail.com \
--to=manojkumar148700@gmail.com \
--cc=git@vger.kernel.org \
--cc=kaartic.sivaraam@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox