Changing the language of the hg interface to English

Paul Boddie paul.boddie at biotek.uio.no
Wed Apr 18 14:56:38 UTC 2012


On 18/04/12 11:14, Teddy Todorov wrote:
> Hello,
>
> Mercurial speaks in French to me, how can I tell it I prefer English for software-related things?
> I have chosen "French" as the preferred format for displaying dates etc. on my Mac (via the System Preferences), which is one place from where hg may have deduced the default language, and I live in France, which is another possible source for the choice, but it does not mean I want hg commands to print their output in French.
> I hope this simple problem has a simple solution...

I found that setting LC_MESSAGES lets you preserve the dates/measures 
settings, although Mercurial doesn't seem to be fully translated. I 
tried this:

LC_MESSAGES=fr_FR.UTF-8 hg help

The result did include French section headings, but not French topics.

You can see the effect of changing various LC environment variables by 
doing something like the following (in a shell environment):

LC_MESSAGES=fr_FR.UTF-8 locale

How this relates to your system preferences is nothing I can really help 
you with, but on KDE 3.x there's a configuration panel which seems to 
expose all the separate locale settings, so maybe it's the same for you.

Paul


More information about the Mercurial mailing list