* LANGUAGE instead of LANG respected in git?
@ 2021-09-19 5:04 Bagas Sanjaya
2021-09-19 7:08 ` Junio C Hamano
2021-09-19 8:53 ` Sergey Organov
0 siblings, 2 replies; 3+ messages in thread
From: Bagas Sanjaya @ 2021-09-19 5:04 UTC (permalink / raw)
To: Git Users
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?
--
An old man doll... just what I always wanted! - Clara
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LANGUAGE instead of LANG respected in git?
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
1 sibling, 0 replies; 3+ messages in thread
From: Junio C Hamano @ 2021-09-19 7:08 UTC (permalink / raw)
To: Bagas Sanjaya; +Cc: git
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LANGUAGE instead of LANG respected in git?
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
1 sibling, 0 replies; 3+ messages in thread
From: Sergey Organov @ 2021-09-19 8:53 UTC (permalink / raw)
To: Bagas Sanjaya; +Cc: Git Users
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-19 8:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).