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

Re: [PATCH v2] fetch-pack: parameterize message containing 'ready' keyword

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 18, 2021, 13:21 UTC
Message-ID
<211118.864k8961hw.gmgdl@evledraar.gmail.com>
In-Reply-To
<CAPig+cTKNYCoiRiDyi-KxxvheiYJ4rAxFY7vHx-r+qNyXYHNjA@mail.gmail.com>
On Thu, Nov 18 2021, Eric Sunshine wrote:
Show 24 quoted lines
> On Thu, Nov 18, 2021 at 5:35 AM Bagas Sanjaya <bagasdotme@gmail.com> wrote:
>> The protocol keyword 'ready' isn't meant for translation. Pass it as
>> parameter instead of spell it in die() message (and potentially confuse
>> translators).
>>
>> Signed-off-by: Bagas Sanjaya <bagasdotme@gmail.com>
>> ---
>> diff --git a/fetch-pack.c b/fetch-pack.c
>> @@ -1410,9 +1410,13 @@ static int process_ack(struct fetch_negotiator *negotiator,
>>         if (*received_ready && reader->status != PACKET_READ_DELIM)
>> -               die(_("expected packfile to be sent after 'ready'"));
>> +               /* TRANSLATORS: The parameter will be 'ready', a protocol
>> +                * keyword */
>> +               die(_("expected packfile to be sent after '%s"), "ready");
>
> Missing closing single-quote after %s.
>
>>         if (!*received_ready && reader->status != PACKET_READ_FLUSH)
>> -               die(_("expected no other sections to be sent after no 'ready'"));
>> +               /* TRANSLATORS: The parameter will be 'ready', a protocol
>> +                * keyword */
>> +               die(_("expected no other sections to be sent after no '%s"), "ready");
>
> Missing closing single-quote after %s.
Also s/be sent after no/be sent after/, i.e. there's a stray "no".
Previous: Eric Sunshine
Message 3 of 3 in “fetch-pack: parameterize message containing 'ready' keyword”
  1. fetch-pack: parameterize message containing 'ready' keywordBagas Sanjaya, Nov 18, 2021
  2. Eric SunshineNov 18, 2021
  3. Ævar Arnfjörð BjarmasonNov 18, 2021

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.