tags:

views:

368

answers:

4

Hi,

I recently came to git for a project I participate to. I found git gui rather handy (under OSX Snow Leopard) to srtat with but I would much like if it were not localized (in French, in my case). Is there preference or hack to have git gui displayed in english ?

Thanks in advance, Julien

+2  A: 
export LANG=en_US

should do. It will affect everything you run from this shell, though.

Michael Krelin - hacker
+3  A: 

You could remove/rename the translation file from the install, french would be

... /share/git-gui/lib/msgs/fr.msg

Don't know about OS-X, but under windows that would normally be C:\Program Files\Git\share\git-gui\lib\msgs\, and on Linux (and others) /usr/share/git-gui/lib/msgs/ .

(and gitk ... /share/gitk/lib/msgs/ )

Joakim Elofsson
A: 

Thanks both of you for quick answers. I (at least temporary) removed the fr.msg and it is less confusing in english imho.

totally agree, most application is confusing on native language (in my case swedish). Btw it seems you got two different users on SO, http://stackoverflow.com/users/173812/julien and http://stackoverflow.com/users/173777/julien somehow.
Joakim Elofsson
Very true. That's why I never use localized software. In particular, that's why my Leopard, though Snow one, speaks English too.
Michael Krelin - hacker
+1  A: 

For Windows users the are two choices as well:

1) Set the LANG environment variable to en.

Important to know: If you don't want to affect anything else except git applications you might add the following line in the beginning of C:\Program Files\Git\cmd\git.cmd file:

@set LANG=en

2) Delete or rename relevant *.msg file in C:\Program Files\Git\share\git-gui\lib\msgs

You save on not modifying any setup shell (especially if you use cmd.exe shells) but you lose on international functionality.

Credits: These answers originated in the official issue raised in msysgit project which can be found here: http://code.google.com/p/msysgit/issues/detail?id=302

Oleg Sakharov