{"thread":{"id":"66515","subject":"[Outreachy] Introduction: Okhuomon Ajayi, microproject in delta-islands.c","startedAt":"2026-10-13T14:25:29Z","lastAt":"2026-10-13T20:33:53Z","messageCount":8,"participants":["Okhuomon Ajayi","Junio C Hamano","Usman Akinyemi"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"554864","messageId":"CAFpMFfAFsRvQ1mkmGVkRnLWf_OHN9h3PAThnVZmrbecV_ihRjA@mail.gmail.com","threadId":"66515","inReplyTo":null,"subject":"[Outreachy] Introduction: Okhuomon Ajayi, microproject in delta-islands.c","fromName":"Okhuomon Ajayi","fromEmail":"okhuomonajayi54@gmail.com","sentAt":"2026-10-13T14:25:29Z","receivedAt":"2026-10-13T14:25:29Z","isPatch":false,"sender":{"key":"okhuomonajayi54@gmail.com","avatar":null},"body":"Hello everyone,\n\nMy name is Okhuomon Ajayi, you can call me Okhuomon. I'm an Outreachy\napplicant for the December 2026 round and I'd like to contribute to\nGit. I have cloned and built Git from source and gone through the\nGeneral Microproject Information page and the MyFirstContribution\ntutorial.\n\nFor my microproject I intend to work on the \"Fix improper pluralization\nto use ngettext()\" idea. In delta-islands.c the progress message\n\"Marked %d islands, done.\" is marked with _() although the number is a\ncount, so I plan to convert it to Q_() with singular and plural forms.\nI found it with:\n\n    git grep '[^Q]_(\"[^\"]*%[id]' -- '*.c'\n\nI searched the list archive for delta-islands and for ngettext/Q_\npatches and did not find anyone working on this message. Please let me\nknow if I missed something.\n\nThanks,\nOkhuomon\n\n"},{"id":"554880","messageId":"20261013164922.93099-1-okhuomonajayi54@gmail.com","threadId":"66515","inReplyTo":"CAFpMFfAFsRvQ1mkmGVkRnLWf_OHN9h3PAThnVZmrbecV_ihRjA@mail.gmail.com","subject":"[Outreachy PATCH] delta-islands: use Q_() for island count","fromName":"Okhuomon Ajayi","fromEmail":"okhuomonajayi54@gmail.com","sentAt":"2026-10-13T16:49:22Z","receivedAt":"2026-10-13T16:49:22Z","isPatch":true,"sender":{"key":"okhuomonajayi54@gmail.com","avatar":null},"body":"The progress message \"Marked %d islands, done.\" is marked for\ntranslation with _(), which gives translators a single form for\nevery count. It reads wrongly when only one island is marked, and\nlanguages with more than two plural forms cannot translate it\ncorrectly.\n\nUse Q_() with a singular and a plural form so the right one is\npicked from island_counter.\n\nFound with:\n\n    git grep '[^Q]_(\"[^\"]*%[id]' -- '*.c'\n\nSigned-off-by: Okhuomon Ajayi <okhuomonajayi54@gmail.com>\n---\n delta-islands.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)\n\ndiff --git a/delta-islands.c b/delta-islands.c\nindex e71a7e1c05..c1c0f992f5 100644\n--- a/delta-islands.c\n+++ b/delta-islands.c\n@@ -496,7 +496,9 @@ void load_delta_islands(struct repository *r, int progress)\n \tfree_remote_islands(ild.remote_islands);\n \n \tif (progress)\n-\t\tfprintf(stderr, _(\"Marked %d islands, done.\\n\"), island_counter);\n+\t\tfprintf(stderr, Q_(\"Marked %d island, done.\\n\",\n+\t\t\t\t   \"Marked %d islands, done.\\n\", island_counter),\n+\t\t\tisland_counter);\n }\n \n void propagate_island_marks(struct repository *r, struct commit *commit)\n-- \n2.54.0\n\n\n"},{"id":"554890","messageId":"xmqqv775xyz9.fsf@gitster.g","threadId":"66515","inReplyTo":"20261013164922.93099-1-okhuomonajayi54@gmail.com","subject":"Re: [Outreachy PATCH] delta-islands: use Q_() for island count","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2026-10-13T18:00:10Z","receivedAt":"2026-10-13T18:00:10Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Okhuomon Ajayi <okhuomonajayi54@gmail.com> writes:\n\n> The progress message \"Marked %d islands, done.\" is marked for\n> translation with _(), which gives translators a single form for\n> every count. It reads wrongly when only one island is marked, and\n> languages with more than two plural forms cannot translate it\n> correctly.\n>\n> Use Q_() with a singular and a plural form so the right one is\n> picked from island_counter.\n\nNicely written.\n\n>\n> Found with:\n>\n>     git grep '[^Q]_(\"[^\"]*%[id]' -- '*.c'\n\nI am not sure of the value in this, though.  You certainly do not\nmean to say that you updated all of the ones that you found with the\nabove.  You are not inviting others to do the same grep and \"fix\"\nany of the hits, as the pattern gives too many false positives\n(i.e., not all %d are about number of things, like the line number a\nparser has found the error it is reporting at), and without warning\nthat, it would not be helpful to these others.\n\n> Signed-off-by: Okhuomon Ajayi <okhuomonajayi54@gmail.com>\n> ---\n>  delta-islands.c | 4 +++-\n>  1 file changed, 3 insertions(+), 1 deletion(-)\n>\n> diff --git a/delta-islands.c b/delta-islands.c\n> index e71a7e1c05..c1c0f992f5 100644\n> --- a/delta-islands.c\n> +++ b/delta-islands.c\n> @@ -496,7 +496,9 @@ void load_delta_islands(struct repository *r, int progress)\n>  \tfree_remote_islands(ild.remote_islands);\n>  \n>  \tif (progress)\n> -\t\tfprintf(stderr, _(\"Marked %d islands, done.\\n\"), island_counter);\n> +\t\tfprintf(stderr, Q_(\"Marked %d island, done.\\n\",\n> +\t\t\t\t   \"Marked %d islands, done.\\n\", island_counter),\n> +\t\t\tisland_counter);\n\nThe change itself looks sensible to me.\n\nThanks.\n\n"},{"id":"554900","messageId":"CAFpMFfAQET2OvZB905cajvhSG6BS9t4zx5G6iGG6BUP_o8wUGQ@mail.gmail.com","threadId":"66515","inReplyTo":"xmqqv775xyz9.fsf@gitster.g","subject":"Re: [Outreachy PATCH] delta-islands: use Q_() for island count","fromName":"Okhuomon Ajayi","fromEmail":"okhuomonajayi54@gmail.com","sentAt":"2026-10-13T19:44:12Z","receivedAt":"2026-10-13T19:44:12Z","isPatch":true,"sender":{"key":"okhuomonajayi54@gmail.com","avatar":null},"body":"On Tue, Oct 13, 2026 at 7:00 PM Junio C Hamano <gitster@pobox.com> wrote:\n\n> I am not sure of the value in this, though.  You certainly do not\n> mean to say that you updated all of the ones that you found with the\n> above.  You are not inviting others to do the same grep and \"fix\"\n> any of the hits, as the pattern gives too many false positives\n> (i.e., not all %d are about number of things, like the line number a\n> parser has found the error it is reporting at), and without warning\n> that, it would not be helpful to these others.\n\nYou are right, I will remove it from the commit message and send a v2.\n\n> The change itself looks sensible to me.\n\nThank you for the review.\n\nOkhuomon\n\nOkhuomon\n\n"},{"id":"554904","messageId":"CAPSxiM-d7FHQVjKnyRu4GJF3hkauyr6Jw67B7W0hLSEyamBFwQ@mail.gmail.com","threadId":"66515","inReplyTo":"CAFpMFfAFsRvQ1mkmGVkRnLWf_OHN9h3PAThnVZmrbecV_ihRjA@mail.gmail.com","subject":"Re: [Outreachy] Introduction: Okhuomon Ajayi, microproject in delta-islands.c","fromName":"Usman Akinyemi","fromEmail":"usmanakinyemi202@gmail.com","sentAt":"2026-10-13T20:13:32Z","receivedAt":"2026-10-13T20:13:32Z","isPatch":false,"sender":{"key":"usmanakinyemi202@gmail.com","avatar":"https://avatars.githubusercontent.com/u/86585626?v=4"},"body":">\n> I searched the list archive for delta-islands and for ngettext/Q_\n> patches and did not find anyone working on this message. Please let me\n> know if I missed something.\n>\n> Thanks,\n> Okhuomon\nHello Okhuomon,\n\nThanks for your interest in the Git project, I saw that you already\nsent the patch.\n>\nUsman.\n\n"},{"id":"554910","messageId":"20261013203042.58610-1-okhuomonajayi54@gmail.com","threadId":"66515","inReplyTo":"20261013164922.93099-1-okhuomonajayi54@gmail.com","subject":"[Outreachy PATCH v2] delta-islands: use Q_() for island count","fromName":"Okhuomon Ajayi","fromEmail":"okhuomonajayi54@gmail.com","sentAt":"2026-10-13T20:30:42Z","receivedAt":"2026-10-13T20:30:42Z","isPatch":true,"sender":{"key":"okhuomonajayi54@gmail.com","avatar":null},"body":"The progress message \"Marked %d islands, done.\" is marked for\ntranslation with _(), which gives translators a single form for\nevery count. It reads wrongly when only one island is marked, and\nlanguages with more than two plural forms cannot translate it\ncorrectly.\n\nUse Q_() with a singular and a plural form so the right one is\npicked from island_counter.\n\nSigned-off-by: Okhuomon Ajayi <okhuomonajayi54@gmail.com>\n---\nChanges since v1:\n- Removed the \"Found with\" git grep paragraph from the commit\n  message, as suggested by Junio. No code was changed.\n\n delta-islands.c | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)\n\ndiff --git a/delta-islands.c b/delta-islands.c\nindex e71a7e1c05..c1c0f992f5 100644\n--- a/delta-islands.c\n+++ b/delta-islands.c\n@@ -496,7 +496,9 @@ void load_delta_islands(struct repository *r, int progress)\n \tfree_remote_islands(ild.remote_islands);\n \n \tif (progress)\n-\t\tfprintf(stderr, _(\"Marked %d islands, done.\\n\"), island_counter);\n+\t\tfprintf(stderr, Q_(\"Marked %d island, done.\\n\",\n+\t\t\t\t   \"Marked %d islands, done.\\n\", island_counter),\n+\t\t\tisland_counter);\n }\n \n void propagate_island_marks(struct repository *r, struct commit *commit)\n-- \n2.54.0\n\n\n"},{"id":"554911","messageId":"CAFpMFfDKH0WaHTogWBrsic--ryfuMtLmJtFeq5GwYfQCsHnx-Q@mail.gmail.com","threadId":"66515","inReplyTo":"CAPSxiM-d7FHQVjKnyRu4GJF3hkauyr6Jw67B7W0hLSEyamBFwQ@mail.gmail.com","subject":"Re: [Outreachy] Introduction: Okhuomon Ajayi, microproject in delta-islands.c","fromName":"Okhuomon Ajayi","fromEmail":"okhuomonajayi54@gmail.com","sentAt":"2026-10-13T20:32:23Z","receivedAt":"2026-10-13T20:32:23Z","isPatch":false,"sender":{"key":"okhuomonajayi54@gmail.com","avatar":null},"body":"On Tue, Oct 13, 2026 at 9:13 PM Usman Akinyemi\n<usmanakinyemi202@gmail.com> wrote:\n\n> Thanks for your interest in the Git project, I saw that you already\n> sent the patch.\n\nThank you, yes i sent a patch already and junio replied to it i just\nsent a v2 patch\n> >\n> Usman.\n\n"},{"id":"554912","messageId":"xmqqwlrluyq6.fsf@gitster.g","threadId":"66515","inReplyTo":"CAFpMFfAQET2OvZB905cajvhSG6BS9t4zx5G6iGG6BUP_o8wUGQ@mail.gmail.com","subject":"Re: [Outreachy PATCH] delta-islands: use Q_() for island count","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2026-10-13T20:33:53Z","receivedAt":"2026-10-13T20:33:53Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Okhuomon Ajayi <okhuomonajayi54@gmail.com> writes:\n\n> On Tue, Oct 13, 2026 at 7:00 PM Junio C Hamano <gitster@pobox.com> wrote:\n>\n>> I am not sure of the value in this, though.  You certainly do not\n>> mean to say that you updated all of the ones that you found with the\n>> above.  You are not inviting others to do the same grep and \"fix\"\n>> any of the hits, as the pattern gives too many false positives\n>> (i.e., not all %d are about number of things, like the line number a\n>> parser has found the error it is reporting at), and without warning\n>> that, it would not be helpful to these others.\n>\n> You are right, I will remove it from the commit message and send a v2.\n\nI think is is common to have such a \"not quite suited for the\npermanent commit log message, but may help reviewers and others who\nare reading the patch while it is still being worked on\" material\nunder the three-dash line below your sign-off.\n\n\n\n>\n>> The change itself looks sensible to me.\n>\n> Thank you for the review.\n>\n> Okhuomon\n>\n> Okhuomon\n\n"}]}