From: "Shawn O. Pearce" <spearce@spearce.org>
To: Steffen Prohaska <prohaska@zib.de>
Cc: Git Mailing List <git@vger.kernel.org>
Subject: Re: How to run git-gui always in English?
Date: Sun, 21 Oct 2007 03:15:43 -0400 [thread overview]
Message-ID: <20071021071543.GF14735@spearce.org> (raw)
In-Reply-To: <C65193EE-A45D-49ED-8831-1A006421A915@zib.de>
Steffen Prohaska <prohaska@zib.de> wrote:
> On Oct 21, 2007, at 8:52 AM, Shawn O. Pearce wrote:
> >
> >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.
>
> 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?
Hmm. Really quick testing here shows that we just need to make sure
env(LANG) is set before we do the msgcat::mcload call in git-gui.sh
line 104.
If we're going to use a `git config gui.lang` thing then we can
probably just make a msgcat::mclocale call on line 103 just before we
load our message file. Unfortunately this is before we have located
git so technically git-gui doesn't know how to run git-config and
thus cannot get to gui.lang. :-|
Hmm. Looking at this further we may be able to insert the mclocale
call at two locations; one at line 864 before we open the repository
wizard, and again at line 1802, just before we start to initialize
our UI. This does mean that for really serious errors (e.g. "No
git in PATH") we'll be using your native OS language.
--
Shawn.
next prev parent reply other threads:[~2007-10-21 7:16 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-21 6:47 How to run git-gui always in English? Steffen Prohaska
2007-10-21 6:52 ` Shawn O. Pearce
2007-10-21 7:03 ` Steffen Prohaska
2007-10-21 7:15 ` Shawn O. Pearce [this message]
2007-10-23 20:00 ` Steffen Prohaska
2007-10-23 22:45 ` Shawn O. Pearce
2007-10-26 8:00 ` Peter Karlsson
2007-10-26 21:41 ` Alex Riesen
2007-10-29 12:58 ` Peter Karlsson
2007-10-30 8:56 ` Junio C Hamano
2007-10-30 9:58 ` Johannes Schindelin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071021071543.GF14735@spearce.org \
--to=spearce@spearce.org \
--cc=git@vger.kernel.org \
--cc=prohaska@zib.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).