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

[GSoC PATCH] fsck: use Q_() for the verbose connectivity message

From
AGAniket Gupta <aniketgupta3001@gmail.com>
Date
Oct 19, 2026, 15:37 UTC
Message-ID
<20261019153725.333-1-aniketgupta3001@gmail.com>

The verbose "Checking connectivity" message has the word "objects" hardcoded as a plural inside a plain _(), so translators can't give the right form for the number. Use Q_() like the other count messages so gettext can pick it. English output stays the same.

Signed-off-by: Aniket Gupta <aniketgupta3001@gmail.com>
---
The number printed here comes from the hash table size in
get_max_object_index() and not a real object count, so it never
says 1. Left that alone, can look at it separately if people think
it's worth it.
 builtin/fsck.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/builtin/fsck.c b/builtin/fsck.c
index 9af4cc085..fedf8f853 100644
--- a/builtin/fsck.c
+++ b/builtin/fsck.c
@@ -379,7 +379,10 @@ static void check_connectivity(struct repository *repo)
 	/* Look up all the requirements, warn about missing objects.. */
 	max = get_max_object_index(repo);
 	if (verbose)
-		fprintf_ln(stderr, _("Checking connectivity (%d objects)"), max);
+		fprintf_ln(stderr, Q_("Checking connectivity (%d object)",
+				      "Checking connectivity (%d objects)",
+				      max),
+			   max);
 
 	for (i = 0; i < max; i++) {
 		struct object *obj = get_indexed_object(repo, i);
-- 
2.56.0.186.gc51408889.dirty
Next: Junio C Hamano
Message 1 of 2 in “fsck: use Q_() for the verbose connectivity message”
  1. fsck: use Q_() for the verbose connectivity messageAniket Gupta, Oct 19, 2026
  2. Junio C HamanoOct 19, 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.