Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hg: How do I change the language of my Mercurial(hg) installation? (MacOS)

Tags:

I re-installed mercurial on my Mac (snow leopard) yesterday. The UI/console language of Mercurial has changed from English to Danish. My machine is set up to US-English and my keyboard layout is Danish. I do not want the Danish translation active as it is incomplete.

I just need Mercurial to "speak" English again. :-) How do i change this?

like image 314
Adam Peter Nielsen Avatar asked Jan 04 '11 10:01

Adam Peter Nielsen


2 Answers

If you set your LANG environment variable to en_US.UTF-8 your can change the language of the Mercurial client (Hg).

export LANG=en_US.UTF-8
like image 99
Emil Rasmussen Avatar answered Oct 13 '22 02:10

Emil Rasmussen


If you don't want to change your environment variables (as this might influence other applications you actually want to speak in your native language), you can also just rename the locale specific subdirectory (e.g. <mercurial_install_dir>/locacle/de) to something else, in which case mercurial will fall back to the default English. I admit it's a bit dirty, but I've used this trick also for other applications where the translation was crappy and the app did not allow to set the desired language explicitly!

like image 22
Till Kuhn Avatar answered Oct 13 '22 02:10

Till Kuhn