From: Sergey Organov <sorganov@gmail.com>
To: Bagas Sanjaya <bagasdotme@gmail.com>
Cc: Git Users <git@vger.kernel.org>
Subject: Re: LANGUAGE instead of LANG respected in git?
Date: Sun, 19 Sep 2021 11:53:00 +0300 [thread overview]
Message-ID: <87pmt5c5g3.fsf@osv.gnss.ru> (raw)
In-Reply-To: <8ed06f91-2efc-1816-aa82-beac8e174549@gmail.com> (Bagas Sanjaya's message of "Sun, 19 Sep 2021 12:04:04 +0700")
Bagas Sanjaya <bagasdotme@gmail.com> writes:
> Hi,
>
> Supposed that I would like to display `git help` in French
> (`fr_FR.UTF-8`) language. I ran `LANGUAGE="fr_FR.UTF-8" git help`, and
> indeed the help is displayed in French. But when I instead ran
> `LANG="fr_FR.UTF-8" git help`, the help is in English instead of
> French.
>
> It seems like Git use LANGUAGE to display localized messages instead
> of LANG (like many other tools do). Why?
You probably have LC_ALL set in your environment. Neither LANG nor
LC_MESSAGES overrides that, while LANGUAGE does.
quote from here:
https://www.gnu.org/software/gettext/manual/html_node/Locale-Environment-Variables.html#Locale-Environment-Variables
"Some systems, unfortunately, set LC_ALL in /etc/profile or in similar
initialization files. As a user, you therefore have to unset this
variable if you want to set LANG and optionally some of the other LC_xxx
variables."
HTH,
-- Sergey Organov
prev parent reply other threads:[~2021-09-19 8:53 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-19 5:04 LANGUAGE instead of LANG respected in git? Bagas Sanjaya
2021-09-19 7:08 ` Junio C Hamano
2021-09-19 8:53 ` Sergey Organov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmt5c5g3.fsf@osv.gnss.ru \
--to=sorganov@gmail.com \
--cc=bagasdotme@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.