All of lore.kernel.org
 help / color / mirror / Atom feed
From: Junio C Hamano <gitster@pobox.com>
To: Bagas Sanjaya <bagasdotme@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: LANGUAGE instead of LANG respected in git?
Date: Sun, 19 Sep 2021 00:08:06 -0700	[thread overview]
Message-ID: <xmqq7dfdf3ft.fsf@gitster.g> (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:

> 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?

That's not Git but your system, most likely GNU gettext, is doing.

Learn to use your search engine before asking questions here.

  https://bfy.tw/Rg6H

which will eventually take you to https://superuser.com/a/392466

  reply	other threads:[~2021-09-19  7:10 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 [this message]
2021-09-19  8:53 ` Sergey Organov

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=xmqq7dfdf3ft.fsf@gitster.g \
    --to=gitster@pobox.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.