threads / discuss / 49316

Help on autocompletion not localized?

Subject: Help on autocompletion not localized?

## tl;dr

2 messages between Sep 11, 2018 and Sep 11, 2018.

replies: 1people: 2as markdown or json

Jean-Noël Avila· Sep 11, 2018, 12:52 UTC · lore
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).

Thanks
Duy Nguyen· Sep 11, 2018, 16:01 UTC · re: Jean-Noël Avila · lore

Re: Help on autocompletion not localized?

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

← back to recent threads