为什么Mercurial会用德语显示帮助文本?我怎么能改变这个?

Ala*_*anL 7 mercurial

我刚刚在运行Mac OS X 10.5.8的MacBook上安装了Mercurial 1.6

"hg"向我显示了英语和德语随机混合的帮助文本,"hg -v"显示所有德语文本.为什么?

事实上,我在德国,而我的Mac则配有德语键盘.我有德国作为系统区域,但英语作为语言.

我说流利的德语,所以让我用德语跟我说话不是一个不可逾越的问题.但英语是我的母语,也是我喜欢的语言.

有谁知道如何覆盖这种刺激性的hg行为?

ang*_*son 3

您需要设置一个环境变量,否则它将默认为您用户的区域设置。

\n\n

该变量应该被命名并且它应该具有为您提供英语(美国)文本的LANG值。en_US

\n\n

Windows 上的结果(我知道,你使用的是 Mac,但我不知道如何在 Mac 上执行此操作):

\n\n
[C:\\] :set lang=de_DE\n\n[C:\\] :hg version\nMercurial Distributed SCM (version 1.6.1023)\n\nCopyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> und andere\nDies ist freie Software; siehe Quellen f\xe2\x81\xbfr Kopierbestimmungen. Es besteht\nKEINE Gew\xce\xa3hrleistung f\xe2\x81\xbfr das Programm, nicht einmal der Marktreife oder der\nVerwendbarkeit f\xe2\x81\xbfr einen bestimmten Zweck.\n\n[C:\\] :set lang=en_US\n\n[C:\\] :hg version\nMercurial Distributed SCM (version 1.6.1023)\n\nCopyright (C) 2005-2010 Matt Mackall <mpm@selenic.com> and others\nThis is free software; see the source for copying conditions. There is NO\nwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n\n[C:\\] :\n
Run Code Online (Sandbox Code Playgroud)\n