Re: How to run git-gui always in English?
- From
Steffen Prohaska <prohaska@zib.de>
- Date
- Oct 21, 2007, 07:03 UTC
- Message-ID
- <C65193EE-A45D-49ED-8831-1A006421A915@zib.de>
- In-Reply-To
- <20071021065230.GE14735@spearce.org>
On Oct 21, 2007, at 8:52 AM, Shawn O. Pearce wrote:
Show 22 quoted lines
> Steffen Prohaska <prohaska@zib.de> wrote: > >> How can I switch msysgit's git-gui to English, independently of >> the language selected for Windows? I recognized that git-gui >> adjusts to the 'language selection' of Windows. How can I >> disable this? I want git-gui to always display English. Nothing >> else, never! I can't help people who use a different language >> in the gui, because I'll not understand what they are talking >> about and they'll not understand me. >> >> Can I set an option in git-gui's option menu? I haven't >> found one. >> > > Yea, we don't have a UI to let you set what language the UI should > appear in. Partly because once the UI is up we'd have to restart > the entire process to change the strings its using. And partly > because nobody has asked for this before. > > I think that if you set LANG=en before you start git-gui it will > take on English, and so will all of the standard dialogs that we > "borrow" from wish.
Hmm. I have no shell. I run git-gui from the Windows Start Menu. It directly runs wish to execute the Windows git-gui wrapper:
--- SNIP --- #!/bin/sh # Tcl ignores the next line -*- tcl -*- \ exec wish "$0" -- "$@"
if { $argc >=2 && [lindex $argv 0] == "--working-dir" } {
cd [lindex $argv 1]
set argv [lrange $argv 2 end]
incr argc -2
}set gitguidir [file dirname [info script]] regsub -all ";" $gitguidir "\\;" gitguidir set env(PATH) "$gitguidir;$env(PATH)" unset gitguidir
source [file join [file dirname [info script]] git-gui.tcl] --- SNIP ---
Do we have a chance before we source the real git-gui.tcl? Maybe we could "set env(LANG)" based on "git config gui.lang"? Or is it already too late because we needed to restart wish?
Steffen