git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 3 of 11 in “How to run git-gui always in English?”
  1. Steffen ProhaskaOct 21, 2007
  2. Shawn O. PearceOct 21, 2007
  3. Steffen ProhaskaOct 21, 2007
  4. Shawn O. PearceOct 21, 2007
  5. Steffen ProhaskaOct 23, 2007
  6. Shawn O. PearceOct 23, 2007
  7. Peter KarlssonOct 26, 2007
  8. Alex RiesenOct 26, 2007
  9. Peter KarlssonOct 29, 2007
  10. Junio C HamanoOct 30, 2007
  11. Johannes SchindelinOct 30, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.