From: demerphq <demerphq@gmail.com>
To: "Ævar Arnfjörð Bjarmason" <avarab@gmail.com>
Cc: Thomas Rast <trast@student.ethz.ch>, Jan Hudec <bulb@ucw.cz>,
Jakub Narebski <jnareb@gmail.com>,
Git Mailing List <git@vger.kernel.org>
Subject: Re: Has anyone looked at Gettext support for Git itself?
Date: Wed, 19 May 2010 17:43:50 +0200 [thread overview]
Message-ID: <AANLkTinyQnc9VLjRmFOh5c-aeESjvlIKnQ3go4r2xoPG@mail.gmail.com> (raw)
In-Reply-To: <AANLkTil0iESsCpHm-X3iiMZC3sEzCqYvXjsZiIHvFz3n@mail.gmail.com>
On 17 May 2010 16:53, Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
> On Mon, May 17, 2010 at 14:32, Thomas Rast <trast@student.ethz.ch> wrote:
>> Ævar Arnfjörð Bjarmason wrote:
>>> On Sun, May 16, 2010 at 16:08, Jan Hudec <bulb@ucw.cz> wrote:
>>> > It would definitely not be fine to break *git*. You need to make sure no
>>> > part of git itself or anything distributed with it (gitk, git gui, gitweb,
>>> > things in contrib) is looking for any string that might be broken by
>>> > translating.
>>>
>>> Of course internal breakage, i.e. git-foo parsing the output from
>>> git-bar breaking under non-English is unacceptable. I meant that
>>> external tools now running under some non-English locale may start
>>> breaking if they're parsing the output and assuming English. The
>>> remedy for that is easy though, just prefix the calls to git with
>>> LC_ALL=C.
>>
>> And how exactly do you expect us to go back in history and prefix all
>> invocations of git in all scripts with LC_ALL=C?
>
> I don't expect you to. I just don't think it's unreasonable that if
> Git were to be internationalized that it behave like every other *nix
> program. If you have a Chinese locale and rely on the output of some
> program being in English your scripts will break if the OS
> subsequently upgrades to a new version of the program that has been
> translated to Chinese.
>
> The right way to handle that is to call programs like that with
> LC_ALL=C.
>
> The alternative would be to do introduce a variable like
> GIT_YES_REALLY_FOLLOW_LC_VARIABLES=1.
>
>> Porcelain such as git-status could be changed, but then there's not
>> that much of it anyway. IMHO a set of standard documentation in each
>> language would be more useful.
>
> The output of the utilities is what people see when using Git, having
> that in your native language is more valuable than some howto being
> translated.
If the language is determined not by the environment, but by the
configuration of the repository, then it seems to me this would be
"opt-in" only, and not have any negative impact on existing
installations or toolsets.
cheers,
Yves
--
perl -Mre=debug -e "/just|another|perl|hacker/"
next prev parent reply other threads:[~2010-05-19 15:43 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-15 22:10 Has anyone looked at Gettext support for Git itself? Ævar Arnfjörð Bjarmason
2010-05-16 0:03 ` Jakub Narebski
2010-05-16 1:12 ` Ævar Arnfjörð Bjarmason
2010-05-16 5:36 ` Dmitry Potapov
2010-05-16 13:12 ` Ævar Arnfjörð Bjarmason
2010-05-16 16:08 ` Jan Hudec
2010-05-16 17:37 ` Ævar Arnfjörð Bjarmason
2010-05-17 14:32 ` Thomas Rast
2010-05-17 14:53 ` Ævar Arnfjörð Bjarmason
2010-05-17 15:12 ` Thomas Rast
2010-05-17 17:59 ` Jan Hudec
2010-05-17 18:56 ` Will Palmer
2010-05-18 7:51 ` Michael J Gruber
2010-05-18 9:35 ` Thomas Singer
2010-05-18 13:33 ` Will Palmer
2010-05-22 11:01 ` Jan Hudec
2010-05-19 15:43 ` demerphq [this message]
2010-05-16 16:53 ` Thomas Singer
2010-05-17 15:04 ` Marc Weber
2010-05-18 7:12 ` Peter Krefting
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=AANLkTinyQnc9VLjRmFOh5c-aeESjvlIKnQ3go4r2xoPG@mail.gmail.com \
--to=demerphq@gmail.com \
--cc=avarab@gmail.com \
--cc=bulb@ucw.cz \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
--cc=trast@student.ethz.ch \
/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 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 NNTP newsgroup(s).