Re: How to run git-gui always in English?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Steffen Prohaska
Date: Sunday, October 21, 2007 - 12:03 am

On Oct 21, 2007, at 8:52 AM, Shawn O. Pearce wrote:


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

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
How to run git-gui always in English?, Steffen Prohaska, (Sat Oct 20, 11:47 pm)
Re: How to run git-gui always in English?, Shawn O. Pearce, (Sat Oct 20, 11:52 pm)
Re: How to run git-gui always in English?, Steffen Prohaska, (Sun Oct 21, 12:03 am)
Re: How to run git-gui always in English?, Shawn O. Pearce, (Sun Oct 21, 12:15 am)
Re: How to run git-gui always in English?, Steffen Prohaska, (Tue Oct 23, 1:00 pm)
Re: How to run git-gui always in English?, Shawn O. Pearce, (Tue Oct 23, 3:45 pm)
Re: How to run git-gui always in English?, Peter Karlsson, (Fri Oct 26, 1:00 am)
Re: How to run git-gui always in English?, Alex Riesen, (Fri Oct 26, 2:41 pm)
Re: How to run git-gui always in English?, Peter Karlsson, (Mon Oct 29, 5:58 am)
Re: How to run git-gui always in English?, Junio C Hamano, (Tue Oct 30, 1:56 am)
Re: How to run git-gui always in English?, Johannes Schindelin, (Tue Oct 30, 2:58 am)