git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[GSoC PATCH] pack-objects: use Q_() for delta thread count

From
MManoj <manojkumar148700@gmail.com>
Date
Nov 28, 2026, 07:52 UTC
Message-ID
<20261128075251.13852-1-manojkumar148700@gmail.com>

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
Message 1 of 1 in “pack-objects: use Q_() for delta thread count”
  1. pack-objects: use Q_() for delta thread countManoj, Nov 28, 2026

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.