# Is there some env variable like GIT_LANG (like LANG)?

7 messages from 2011-03-21 to 2011-03-22. Participants: Dirk Süsserott, Junio C Hamano, Lasse Makholm.
Thread: https://gitlist.dev/t/26820

## Dirk Süsserott, 2011-03-21 18:50

Subject: Is there some env variable like GIT_LANG (like LANG)?
Message-ID: <4D879E11.6040609@dirk.my1.cc>
URL: https://gitlist.dev/e/4D879E11.6040609%40dirk.my1.cc

```
Hello list,

I'm from Germany, but nevertheless I prefer my Git to talk English, esp.
Gitk and Git Gui. I appreciate that people translate it into
so many languages, but personally I'm totally helpless with a German git 
gui.

I know I can set LANG=en_US (that's what I actually do), but that
affects other applications as well. Is there some environment variable
like GIT_LANG or so? According to the manpages, there isn't.

What would you think of it?

Dirk

```

## Junio C Hamano, 2011-03-21 19:43

Subject: Re: Is there some env variable like GIT_LANG (like LANG)?
Message-ID: <7vipvcp8e3.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vipvcp8e3.fsf%40alter.siamese.dyndns.org
In-Reply-To: <4D879E11.6040609@dirk.my1.cc>

```
Dirk Süsserott <newsletter@dirk.my1.cc> writes:

> What would you think of it?

Strongly negative.  I don't want force people to set GIT_LANG HG_LANG
CVS_LANG and 47 different FROTZ_LANG environment variables.

I would rather just set LANG=C LC_ALL=C in the terminal I use git in and
leave everything else in whatever locale the rest of the system is in.

```

## Dirk Süsserott, 2011-03-21 19:48

Subject: Re: Is there some env variable like GIT_LANG (like LANG)?
Message-ID: <4D87ABA5.1030609@dirk.my1.cc>
URL: https://gitlist.dev/e/4D87ABA5.1030609%40dirk.my1.cc
In-Reply-To: <7vipvcp8e3.fsf@alter.siamese.dyndns.org>

```
Am 21.03.2011 20:43 schrieb Junio C Hamano:
> Dirk Süsserott<newsletter@dirk.my1.cc>  writes:
>
>> What would you think of it?
>
> Strongly negative.  I don't want force people to set GIT_LANG HG_LANG
> CVS_LANG and 47 different FROTZ_LANG environment variables.
>
> I would rather just set LANG=C LC_ALL=C in the terminal I use git in and
> leave everything else in whatever locale the rest of the system is in.
>

Ok. Accepted. Was just a question. I see your point.

```

## Lasse Makholm, 2011-03-21 20:30

Subject: Re: Is there some env variable like GIT_LANG (like LANG)?
Message-ID: <AANLkTikXsYONY5rUSF5138bQ=R4gCopOO8fu=3np+c98@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTikXsYONY5rUSF5138bQ%3DR4gCopOO8fu%3D3np%2Bc98%40mail.gmail.com
In-Reply-To: <4D87ABA5.1030609@dirk.my1.cc>

```
2011/3/21 Dirk Süsserott <newsletter@dirk.my1.cc>:
> Am 21.03.2011 20:43 schrieb Junio C Hamano:
>>
>> Dirk Süsserott<newsletter@dirk.my1.cc>  writes:
>>
>>> What would you think of it?
>>
>> Strongly negative.  I don't want force people to set GIT_LANG HG_LANG
>> CVS_LANG and 47 different FROTZ_LANG environment variables.
>>
>> I would rather just set LANG=C LC_ALL=C in the terminal I use git in and
>> leave everything else in whatever locale the rest of the system is in.
>>
>
> Ok. Accepted. Was just a question. I see your point.

Alternatively, you might like something like the following in your .bashrc:

function git
{
    LANG=C command git "$@"
}

-- 
/Lasse

```

## Dirk Süsserott, 2011-03-21 20:36

Subject: Re: Is there some env variable like GIT_LANG (like LANG)?
Message-ID: <4D87B6D4.3040601@dirk.my1.cc>
URL: https://gitlist.dev/e/4D87B6D4.3040601%40dirk.my1.cc
In-Reply-To: <AANLkTikXsYONY5rUSF5138bQ=R4gCopOO8fu=3np+c98@mail.gmail.com>

```
Am 21.03.2011 21:30 schrieb Lasse Makholm:
> 2011/3/21 Dirk Süsserott<newsletter@dirk.my1.cc>:
>> Am 21.03.2011 20:43 schrieb Junio C Hamano:
>>>
>>> Dirk Süsserott<newsletter@dirk.my1.cc>    writes:
>>>
>>>> What would you think of it?
>>>
>>> Strongly negative.  I don't want force people to set GIT_LANG HG_LANG
>>> CVS_LANG and 47 different FROTZ_LANG environment variables.
>>>
>>> I would rather just set LANG=C LC_ALL=C in the terminal I use git in and
>>> leave everything else in whatever locale the rest of the system is in.
>>>
>>
>> Ok. Accepted. Was just a question. I see your point.
>
> Alternatively, you might like something like the following in your .bashrc:
>
> function git
> {
>      LANG=C command git "$@"
> }
>

Hmm. Looks interesting. I'll try it out. I'm not so shell'ish (more 
perl'ish) but I expect that to "rename"/"alias" git to the given 
command. If it works, it's great. Thank you.

```

## Lasse Makholm, 2011-03-21 20:48

Subject: Re: Is there some env variable like GIT_LANG (like LANG)?
Message-ID: <AANLkTi=wwFw09QkrttvxvuEoHyuQ+61wa0YMysDQC05D@mail.gmail.com>
URL: https://gitlist.dev/e/AANLkTi%3DwwFw09QkrttvxvuEoHyuQ%2B61wa0YMysDQC05D%40mail.gmail.com
In-Reply-To: <4D87B6D4.3040601@dirk.my1.cc>

```
2011/3/21 Dirk Süsserott <newsletter@dirk.my1.cc>:
> Am 21.03.2011 21:30 schrieb Lasse Makholm:
>>
>> 2011/3/21 Dirk Süsserott<newsletter@dirk.my1.cc>:
>>>
>>> Am 21.03.2011 20:43 schrieb Junio C Hamano:
>>>>
>>>> Dirk Süsserott<newsletter@dirk.my1.cc>    writes:
>>>>
>>>>> What would you think of it?
>>>>
>>>> Strongly negative.  I don't want force people to set GIT_LANG HG_LANG
>>>> CVS_LANG and 47 different FROTZ_LANG environment variables.
>>>>
>>>> I would rather just set LANG=C LC_ALL=C in the terminal I use git in and
>>>> leave everything else in whatever locale the rest of the system is in.
>>>>
>>>
>>> Ok. Accepted. Was just a question. I see your point.
>>
>> Alternatively, you might like something like the following in your
>> .bashrc:
>>
>> function git
>> {
>>     LANG=C command git "$@"
>> }
>>
>
> Hmm. Looks interesting. I'll try it out. I'm not so shell'ish (more
> perl'ish) but I expect that to "rename"/"alias" git to the given command. If
> it works, it's great. Thank you.

Just make sure you include the "command" part or the function will
call itself indefinitely...

-- 
/Lasse

```

## Dirk Süsserott, 2011-03-22 19:30

Subject: Re: Is there some env variable like GIT_LANG (like LANG)?
Message-ID: <4D88F8EF.8020609@dirk.my1.cc>
URL: https://gitlist.dev/e/4D88F8EF.8020609%40dirk.my1.cc
In-Reply-To: <AANLkTi=wwFw09QkrttvxvuEoHyuQ+61wa0YMysDQC05D@mail.gmail.com>

```
Am 21.03.2011 21:48 schrieb Lasse Makholm:
>>>
>>> Alternatively, you might like something like the following in your
>>> .bashrc:
>>>
>>> function git
>>> {
>>>      LANG=C command git "$@"
>>> }
>>>
>
> Just make sure you include the "command" part or the function will
> call itself indefinitely...
>

That would be like my favourite forkbomb: ":(){ :|:& };:"
WARNING: Don't type that in the shell! The system hangs
immediately, even if it looks like only smileys.

Thanks a lot. It does exactly what I want. And it's a good
trick for other applications as well.

```
