[git] turn off localization
Richard L. Hamilton
rlhamil at smart.net
Sat Jul 28 18:29:11 PDT 2012
The usual way of communicating the desired locale, certainly for command-line programs, is by setting appropriate environment variables. The lowest priority (overridden by any of the others where they conflict) is LANG, which applies to all categories of locale information not set with one of the other environment variables. Then there are category-specific environment variables:
LC_COLLATE collation sequence
LC_CTYPE character classification
LC_MESSAGES message text
LD_MONETARY currency symbol and notation
LC_NUMERIC preferred separator and decimal character
LC_TIME preferred date and time formats
and finally, all of the above can be overridden with LC_ALL
Thus, if I start with
but wish to run some single command and its descendants (in place of the locale command below) in another locale:
sh-3.2$ env LC_ALL=en_US.UTF-8 locale
On Jul 28, 2012, at 7:19 AM, heapifyman wrote:
> is there a way to turn off localization for a specific port? In my case git output on the command line is in German but I would like to have the original English output.
> How do I do that? Delete the file /opt/local/share/locale/de/LC_MESSAGES/git.mo ?
> Thanks in advance for any help.
> macports-users mailing list
> macports-users at lists.macosforge.org
eMail: mailto:rlhamil at smart.net
Home page: http://www.smart.net/~rlhamil/
AIM, Yahoo, etc: ask
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the macports-users