Changing the language of the hg interface to English

Teddy Todorov Theodore.Todorov at cern.ch
Wed Apr 18 15:11:17 UTC 2012


Thank you very much, setting

export LC_MESSAGES=en

gives the desired result. Before the "export" the variable LC_MESSAGES was not set and I had this sort of output:

$ hg add opt
ajout de opt/LayerBuilderFromParam.cc
...
After the "export" I get

$ hg add utils/
adding utils/Singleton.h

   Cheers,
          Teddy

On 18 avr. 2012, at 16:56, Paul Boddie wrote:

> 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