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

Re: [PATCH] fetch-pack: add TRANSLATORS notice for packfile ready messages

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Nov 15, 2021, 15:21 UTC
Message-ID
<211115.86ilwtsasb.gmgdl@evledraar.gmail.com>
In-Reply-To
<2a4428a5-91d9-a0a5-39cd-eefa1c92024e@gmail.com>
On Mon, Nov 15 2021, Bagas Sanjaya wrote:
Show 15 quoted lines
> On 14/11/21 16.50, Ævar Arnfjörð Bjarmason wrote:
>> If something isn't meant to be translated do this instead:
>>      die(_("expected no other sections to be sent after no '%s"),
>> "ready");
>> I.e. pass it as a parameter.
>> There can then be a "TRANSLATORS" comment that explains that it's
>> the
>> string "ready", in reference to that protocol keyword. We do it that way
>> in various other places, and it completely avoids the potential problem
>> of a should not be translated string being translated.
>> 
>
> Something like:
> /* TRANSLATORS: The 'ready' string is the protocol keyword. Leave it
>    as is. */ ?

No, e.g. "TRANSLATORS: The parameter will be 'ready', a protocol keyword" or something.

I.e. you don't need to instruct them to leave it as-is if there's no way they can't leave it as-is, since it's being passed as a parameter.

> But I have admitted that I lean to your suggestion.

Yes you could also embed it in the string, but why do that in this case? Seems like zero benefit, and potential translator confusion.

Previous: Bagas Sanjaya
Message 4 of 4 in “fetch-pack: add TRANSLATORS notice for packfile ready messages”
  1. fetch-pack: add TRANSLATORS notice for packfile ready messagesBagas Sanjaya, Nov 14, 2021
  2. Ævar Arnfjörð BjarmasonNov 14, 2021
  3. Bagas SanjayaNov 15, 2021
  4. Ævar Arnfjörð BjarmasonNov 15, 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.