threads / discuss / 19852

Windows 7 and git-gui/gitk language

Subject: Windows 7 and git-gui/gitk language

## tl;dr

4 messages between Jun 18, 2009 and Jun 19, 2009.

replies: 3people: 2as markdown or json

Peter Krefting· Jun 18, 2009, 11:05 UTC · lore
Hi!

When running on Windows XP (no matter which language of the OS I had installed), git-gui and gitk (msys) would show up in the language I had set up as my primary language in the Control Panel (Swedish).

I am now running Git on the Windows 7 RC, and I cannot get it to work, I get English in all cases. I have set all locale settings in the Control Panel to Swedish, and even installed the Swedish Display Language Pack and set the OS language to Swedish.

Does anyone know if there is something else I need to do to get git-gui/gitk to display in Swedish?

-- 
\\// Peter - http://www.softwolves.pp.se/
Pat Thoyts· Jun 19, 2009, 19:55 UTC · re: Peter Krefting · lore

Re: Windows 7 and git-gui/gitk language

Peter Krefting <peter@softwolves.pp.se> writes:
Show 13 quoted lines
>Hi!
>
>When running on Windows XP (no matter which language of the OS I had
>installed), git-gui and gitk (msys) would show up in the language I
>had set up as my primary language in the Control Panel (Swedish).
>
>I am now running Git on the Windows 7 RC, and I cannot get it to work,
>I get English in all cases. I have set all locale settings in the
>Control Panel to Swedish, and even installed the Swedish Display
>Language Pack and set the OS language to Swedish.
>
>Does anyone know if there is something else I need to do to get
>git-gui/gitk to display in Swedish?

You could try setting the LANG environment variable. I've got an English installation of Windows 7 but setting LANG=sv before starting git gui or gitk causes the program to show what looks like Swedish labels and menus.

If you fire up wish on its own (it is installed with msys Git) and enter 'package require msgcat; msgcat::mclocale' in the console window it should be showing something other than 'en' if your Windows installation is non-English. There might be a bug for the Tcl people here (comp.lang.tcl or the sourceforge bug tracker).

-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD
Pat Thoyts· Jun 19, 2009, 20:19 UTC · re: Pat Thoyts · lore

Re: Windows 7 and git-gui/gitk language

Pat Thoyts <patthoyts@users.sourceforge.net> writes:
Show 6 quoted lines
>If you fire up wish on its own (it is installed with msys Git) and
>enter 'package require msgcat; msgcat::mclocale' in the console window
>it should be showing something other than 'en' if your Windows
>installation is non-English. There might be a bug for the Tcl people
>here (comp.lang.tcl or the sourceforge bug tracker).
>

To follow-up on myself - the msgcat locale is set on Windows by reading a value out of the registry. This seems to have changed on Windows 7 now so the locale always gets defaulted to 'C'. I'll raise a bug with the tcl project and get a fix done.

-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD
Pat Thoyts· Jun 19, 2009, 20:43 UTC · re: Pat Thoyts · lore

Re: Windows 7 and git-gui/gitk language

Pat Thoyts <patthoyts@users.sourceforge.net> writes:

More follow-up -- it is actually the registry package missing from the msysGit version of tcl which causes the fault. msysGit issue 283 is now raised for this.

-- 
Pat Thoyts                            http://www.patthoyts.tk/
PGP fingerprint 2C 6E 98 07 2C 59 C8 97  10 CE 11 E6 04 E0 B9 DD

← back to recent threads