{"thread":{"id":"66949","subject":"[GSoC PATCH] pack-objects: use Q_() for delta thread count","startedAt":"2026-11-28T07:52:51Z","lastAt":"2026-11-28T07:52:51Z","messageCount":1,"participants":["Manoj"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"559590","messageId":"20261128075251.13852-1-manojkumar148700@gmail.com","threadId":"66949","inReplyTo":null,"subject":"[GSoC PATCH] pack-objects: use Q_() for delta thread count","fromName":"Manoj","fromEmail":"manojkumar148700@gmail.com","sentAt":"2026-11-28T07:52:51Z","receivedAt":"2026-11-28T07:52:51Z","isPatch":true,"sender":{"key":"manojkumar148700@gmail.com","avatar":null},"body":"The progress message \"Delta compression using up to %d threads\" is\nmarked for translation with _(), which gives translators a single form\nfor every count. Languages with more than two plural forms cannot\ntranslate it correctly.\n\nUse Q_() with a singular and a plural form so the right one is picked\nfrom delta_search_threads, as the \"Path-based delta compression\"\nmessage in the same file already does.\n\nThe English output is unchanged, as this message is only shown when\nmore than one thread is used.\n\nSigned-off-by: Manoj <manojkumar148700@gmail.com>\n---\n builtin/pack-objects.c | 5 ++++-\n 1 file changed, 4 insertions(+), 1 deletion(-)\n\ndiff --git a/builtin/pack-objects.c b/builtin/pack-objects.c\nindex 87c3102e62..c33b075c77 100644\n--- a/builtin/pack-objects.c\n+++ b/builtin/pack-objects.c\n@@ -3227,7 +3227,10 @@ static void ll_find_deltas(struct object_entry **list, unsigned list_size,\n \t\treturn;\n \t}\n \tif (progress > pack_to_stdout)\n-\t\tfprintf_ln(stderr, _(\"Delta compression using up to %d threads\"),\n+\t\tfprintf_ln(stderr,\n+\t\t\t   Q_(\"Delta compression using up to %d thread\",\n+\t\t\t      \"Delta compression using up to %d threads\",\n+\t\t\t      delta_search_threads),\n \t\t\t   delta_search_threads);\n \tCALLOC_ARRAY(p, delta_search_threads);\n \n-- \n2.43.0\n\n\n"}]}