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
Jeff King <peff@peff.net>
Date
Sep 24, 2025, 00:41 UTC
Message-ID
<20250924004133.GA1142438@coredump.intra.peff.net>
In-Reply-To
<54b9d6a1-6edf-43e0-8e6b-e096f322df64@app.fastmail.com>
On Tue, Sep 23, 2025 at 09:59:55PM +0200, Kristoffer Haugsbakk wrote:
Show 13 quoted lines
> 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.

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.

-Peff
Previous: Kristoffer HaugsbakkNext: Ben Knoble
Message 4 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.