* Is there some env variable like GIT_LANG (like LANG)?
@ 2011-03-21 18:50 Dirk Süsserott
2011-03-21 19:43 ` Junio C Hamano
0 siblings, 1 reply; 7+ messages in thread
From: Dirk Süsserott @ 2011-03-21 18:50 UTC (permalink / raw)
To: Git Mailing List
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is there some env variable like GIT_LANG (like LANG)?
2011-03-21 18:50 Is there some env variable like GIT_LANG (like LANG)? Dirk Süsserott
@ 2011-03-21 19:43 ` Junio C Hamano
2011-03-21 19:48 ` Dirk Süsserott
0 siblings, 1 reply; 7+ messages in thread
From: Junio C Hamano @ 2011-03-21 19:43 UTC (permalink / raw)
To: Dirk Süsserott; +Cc: Git Mailing List
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is there some env variable like GIT_LANG (like LANG)?
2011-03-21 19:43 ` Junio C Hamano
@ 2011-03-21 19:48 ` Dirk Süsserott
2011-03-21 20:30 ` Lasse Makholm
0 siblings, 1 reply; 7+ messages in thread
From: Dirk Süsserott @ 2011-03-21 19:48 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Git Mailing List
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is there some env variable like GIT_LANG (like LANG)?
2011-03-21 19:48 ` Dirk Süsserott
@ 2011-03-21 20:30 ` Lasse Makholm
2011-03-21 20:36 ` Dirk Süsserott
0 siblings, 1 reply; 7+ messages in thread
From: Lasse Makholm @ 2011-03-21 20:30 UTC (permalink / raw)
To: Dirk Süsserott; +Cc: Junio C Hamano, Git Mailing List
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is there some env variable like GIT_LANG (like LANG)?
2011-03-21 20:30 ` Lasse Makholm
@ 2011-03-21 20:36 ` Dirk Süsserott
2011-03-21 20:48 ` Lasse Makholm
0 siblings, 1 reply; 7+ messages in thread
From: Dirk Süsserott @ 2011-03-21 20:36 UTC (permalink / raw)
To: Lasse Makholm; +Cc: Junio C Hamano, Git Mailing List
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is there some env variable like GIT_LANG (like LANG)?
2011-03-21 20:36 ` Dirk Süsserott
@ 2011-03-21 20:48 ` Lasse Makholm
2011-03-22 19:30 ` Dirk Süsserott
0 siblings, 1 reply; 7+ messages in thread
From: Lasse Makholm @ 2011-03-21 20:48 UTC (permalink / raw)
To: Dirk Süsserott; +Cc: Junio C Hamano, Git Mailing List
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Is there some env variable like GIT_LANG (like LANG)?
2011-03-21 20:48 ` Lasse Makholm
@ 2011-03-22 19:30 ` Dirk Süsserott
0 siblings, 0 replies; 7+ messages in thread
From: Dirk Süsserott @ 2011-03-22 19:30 UTC (permalink / raw)
To: Lasse Makholm; +Cc: Junio C Hamano, Git Mailing List
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2011-03-22 19:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-21 18:50 Is there some env variable like GIT_LANG (like LANG)? Dirk Süsserott
2011-03-21 19:43 ` Junio C Hamano
2011-03-21 19:48 ` Dirk Süsserott
2011-03-21 20:30 ` Lasse Makholm
2011-03-21 20:36 ` Dirk Süsserott
2011-03-21 20:48 ` Lasse Makholm
2011-03-22 19:30 ` Dirk Süsserott
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).