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

Re: [Bug report] Git incorrectly selects language in macos

From
NDNiko Dzhus <primenico@gmail.com>
Date
Sep 15, 2018, 02:20 UTC
Message-ID
<CAKd-JgS3omKbN+OzQL2dUun6Seg9CjDNk8KEj9m83xdTZE=7FA@mail.gmail.com>
In-Reply-To
<CAKd-JgStGb4Ka9Rs6G2e4ADQKZVrsJMsNGz1sRP_4Ej4=FtxtA@mail.gmail.com>
Looks like the issue appeared after updating git from brew.

I tried it on a different mac laptop, git 2.18 still used English, but after updating to 2.19 it started using secondary language.

A quick search revealed that brew changed how it builds git recently. I think, it just didn't include i18n by default before, so I never noticed this. Here's the history of formula changes: https://github.com/Homebrew/homebrew-core/commits/master/Formula/git.rb Also, I found this thread https://github.com/Homebrew/homebrew-core/issues/31980

Anybody here familiar enough with the build process and dependencies of git to pinpoint what exactly is causing this and how to fix it?...

On Fri, Sep 14, 2018 at 10:08 PM Niko Dzhus <primenico@gmail.com> wrote:
Show 15 quoted lines
>
> It doesn't use English when other language is available as a secondary language.
>
> Reproducing:
>
> 1. Open "Language & Region" in macos settings
> 2. In "Preferred languages" box, set English as a primary language.
> 3. Add another language, that git is translated to, as a secondary
> language, for example, French or German.
> 4. Run any git command - git will use the secondary language, instead
> of English.
>
> When the secondary language is removed, then git starts using English again.
>
> I have git 2.19.0, installed from brew, and my OS is macOS 10.13.6 .
Previous: Niko DzhusNext: Eric Sunshine
Message 4 of 11 in “[Bug report] Git incorrectly selects language in macos”
  1. Niko DzhusSep 14, 2018
  2. Ævar Arnfjörð BjarmasonSep 14, 2018
  3. Niko DzhusSep 15, 2018
  4. Niko DzhusSep 15, 2018
  5. Eric SunshineSep 16, 2018
  6. Nate WeaverJan 15, 2019
  7. Nate WeaverJan 15, 2019
  8. Nate WeaverJan 15, 2019
  9. Eric SunshineJan 15, 2019
  10. Jonathan NiederJan 16, 2019
  11. Jonathan NiederJan 16, 2019

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.