如何在git-gui中设置所需的语言? [英] how to set desired language in git-gui?

查看:141
本文介绍了如何在git-gui中设置所需的语言?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近来参加一个我参与的项目。我发现git gui非常方便(在OSX Snow Leopard下)以支持srtat,但是我非常喜欢它不是本地化的(法语,在我的情况下)。有没有优先或hack有英文显示git gui?

解决方案

对于 Windows 用户还有两个选择:

1)将LANG环境变量设置为 en



a)整体Windows版: http://www.itechtalk.com/ thread3595.html



b)仅限于git shell: b
$ b

如果你不想要影响除git应用程序以外的任何其他应用程序,您可以在 C:\Program Files\Git\cmd\git.cmd 文件的开头添加以下行:

  @set LANG = en 

请注意,这只在从git shell启动命令时才起作用 - 从开始菜单启动的GIT GUI不会受到影响



2)删除或在C:\ Program Files \Git\shar中重命名相关的* .msg文件e \git-gui\lib\msgs

您可以节省不修改任何安装程序的shell(特别是在使用cmd.exe的情况下)
您输入的国际功能。



积分:这些答案来自 msysgit 项目,可以在这里找到: http://code.google.com/p/msysgit/issues/detail?id=302


I recently came to git for a project I participate to. I found git gui rather handy (under OSX Snow Leopard) to srtat with but I would much like if it were not localized (in French, in my case). Is there preference or hack to have git gui displayed in english?

解决方案

For Windows users the are two choices as well:

1) Set the LANG environment variable to en.

a) Overall for Windows: http://www.itechtalk.com/thread3595.html

b) For the git shell only:

If you don't want to affect anything else except git applications you might add the following line in the beginning of C:\Program Files\Git\cmd\git.cmd file:

@set LANG=en

Please note that this will only work when launching commands from the git shell - GIT GUI launched from the start menu will not be affected

2) Delete or rename relevant *.msg file in C:\Program Files\Git\share\git-gui\lib\msgs

You save on not modifying any setup shell (especially if you use cmd.exe shells) but you lose on international functionality.

Credits: These answers originated in the official issue raised in msysgit project which can be found here: http://code.google.com/p/msysgit/issues/detail?id=302

这篇关于如何在git-gui中设置所需的语言?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆