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

Re: format-patch: why are the Range-diff: and Interdiff: headers translated?

From
Ben Knoble <ben.knoble@gmail.com>
Date
Sep 24, 2025, 02:08 UTC
Message-ID
<43606056-D212-408C-8E53-0B082ED1BF55@gmail.com>
In-Reply-To
<20250924004133.GA1142438@coredump.intra.peff.net>
Show 22 quoted lines
> Le 23 sept. 2025 à 20:42, Jeff King <peff@peff.net> a écrit :
> 
> On Tue, Sep 23, 2025 at 09:59:55PM +0200, Kristoffer Haugsbakk wrote:
> 
>> I’m not concerned about machine-readability.  My thought was that
>> localization/l10n of this software was intended for the user themselves.
>> And also that users might, without intending to do so necessarily, end
>> up using localized output in contexts where they do want English
>> strings, like on an English-language mailing list.  Even though they
>> might prefer Spanish (from my Colombian example) when using Git
>> themselves.
>> 
>> But there might for all I know be Colombian/Latin American patch mailing
>> lists where localization like this works great.
>> 
>> I’m not really in the natural target group for l10n Git.  I might be
>> totally missing all the use-cases here.
> 
> I'm not a user of the l10n stuff either, so you can take my opinion with
> a grain of salt. But it seems obvious to me that "the language I am most
> comfortable using" and "the language for the project I am contributing
> to" might not necessarily be the same.
Yep. My own patches have probably come in with French titles here because I set LANG that way.
Show 9 quoted lines
> I'm not sure how well gettext supports this use case, though. The first
> one should obviously come from LANG, etc. If we added a hypothetical
> format.lang config option, is there a way to tell gettext to translate a
> string using a language string provided per-call, rather than from the
> environment?
> 
> I don't know that anybody is really even asking for this, so I'm not
> proposing to spend a lot of effort on it. But the thread made me wonder
> what is even possible/easy to do here.
I’m not asking at the moment, since it hasn’t bothered anyone. If it does and there’s a need to do something else, I’ll fix my workflow (opting in to such new config or otherwise, as the case may be).  
Previous: Jeff KingNext: Jeff King
Message 5 of 6 in “format-patch: why are the Range-diff: and Interdiff: headers translated?”
  1. Kristoffer HaugsbakkSep 23, 2025
  2. Eric SunshineSep 23, 2025
  3. Kristoffer HaugsbakkSep 23, 2025
  4. Jeff KingSep 24, 2025
  5. Ben KnobleSep 24, 2025
  6. Jeff KingSep 24, 2025

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.