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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Steffen Prohaska <prohaska@...>
Cc: Git Mailing List <git@...>
Date: Sunday, October 21, 2007 - 3:15 am

Steffen Prohaska <prohaska@zib.de> wrote:

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.
-
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, (Sun Oct 21, 2:47 am)
Re: How to run git-gui always in English?, Peter Karlsson, (Fri Oct 26, 4:00 am)
Re: How to run git-gui always in English?, Alex Riesen, (Fri Oct 26, 5:41 pm)
Re: How to run git-gui always in English?, Peter Karlsson, (Mon Oct 29, 8:58 am)
Re: How to run git-gui always in English?, Johannes Schindelin, (Tue Oct 30, 5:58 am)
Re: How to run git-gui always in English?, Junio C Hamano, (Tue Oct 30, 4:56 am)
Re: How to run git-gui always in English?, Steffen Prohaska, (Tue Oct 23, 4:00 pm)
Re: How to run git-gui always in English?, Shawn O. Pearce, (Tue Oct 23, 6:45 pm)
Re: How to run git-gui always in English?, Shawn O. Pearce, (Sun Oct 21, 2:52 am)
Re: How to run git-gui always in English?, Steffen Prohaska, (Sun Oct 21, 3:03 am)
Re: How to run git-gui always in English?, Shawn O. Pearce, (Sun Oct 21, 3:15 am)