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

Re: Help on autocompletion not localized?

From
Duy Nguyen <pclouds@gmail.com>
Date
Sep 11, 2018, 16:01 UTC
Message-ID
<CACsJy8DBoZyOSivk-ZZZze0nViPqw-GvseDJADvNyy7c1jHV-Q@mail.gmail.com>
In-Reply-To
<3d9c42ea-70ba-a27c-1ece-797829caa1b0@free.fr>
On Tue, Sep 11, 2018 at 2:55 PM Jean-Noël Avila <jn.avila@free.fr> wrote:
Show 9 quoted lines
>
> Hi,
>
>
> When invoking the autocompletion help with <TAB><TAB> after a double
> hyphen under zsh, the help list is not localized. I guess the help list
> comes from some usage output of the on-going git command, but I wasn't
> able to find where and how this happens (completion scripts are quite
> hairy).

I don't use zsh, but I guess that's because the help strings are hard coded in there (in English of course). You can start at __git_zsh_cmd_common() function.

These strings are available (or at least possible to make them available) from 'git' binary, which should be translated. It's just a a matter of hooking up to zsh script.

-- 
Duy
Previous: Jean-Noël Avila
Message 2 of 2 in “Help on autocompletion not localized?”
  1. Jean-Noël AvilaSep 11, 2018
  2. Duy NguyenSep 11, 2018

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.