From: Michael J Gruber <git@drmicha.warpmail.net>
To: Jeff King <peff@peff.net>
Cc: Junio C Hamano <gitster@pobox.com>,
Nguyen Thai Ngoc Duy <pclouds@gmail.com>,
git@vger.kernel.org
Subject: Re: [PATCH RFC 0/2] Mixing English and a local language
Date: Fri, 14 Sep 2012 12:41:48 +0200 [thread overview]
Message-ID: <505309EC.8040400@drmicha.warpmail.net> (raw)
In-Reply-To: <20120913180056.GA1696@sigill.intra.peff.net>
Jeff King venit, vidit, dixit 13.09.2012 20:00:
> On Thu, Sep 13, 2012 at 10:30:52AM -0700, Junio C Hamano wrote:
>
>>> But it should not be per-command, but per-message, and
>>> should include all output that is not diagnostic and is not
>>> machine-parseable (e.g., what I mentioned above, request-pull
>>> output, etc). If it is the project's language, then the team
>>> members will need to know it anyway, so it should not be too big a
>>> burden to have a potentially different language there than in the
>>> diagnostic messages.
>>
>> No matter what the project languages is, machine parseable part will
>> not be localized but fixed to "C" anyway, so I do not think it comes
>> into the picture.
>
> But there are parts that are neither machine-parseable nor diagnostics.
> The diffstat is one, but I mentioned others. Are those going to be
> forever fixed to LANG=C?
>
> That does not bother me, but for a project whose team works entirely in
> Japanese (both individually, and when sharing code), they will still be
> stuck with these English-language snippets, and no way to localize them.
> Even though they may not speak a word of it.
>
> I have no idea if such a team is a strawman or not; that is why I
> separated points 1 and 2. We can wait on point 2 until such a team shows
> up and complains (of course, they would have to come here and complain
> in English, so...).
>
>> My take on this is, if there is the project language, it should
>> apply to _everything_. Please do not introduce any per-command,
>> per-message, per-anything mess. Just set LANG/LC_ALL up and be done
>> with it.
>
> But isn't that arguing for localizing diffstat? It is not
> machine-parseable, so an all-Japanese team would want to localize it
> along with their diagnostics.
>
> -Peff
>
The basic assumption is that we have people who are proficient in at
least 2 languages. In fact, the initial i18n efforts were targeted at
people who are much more comfortable in their $LANG than with LANG=C.
For this category, being able to localize everything(*) is important.
They will mostly work with $LANG projects. I don't think they're strawmen.
For those proficient in 2 languages it's desirable to switch per project
because it's likely they participate in projects with different $LANG
preferences. Again, that means localizing everything(*). Additionally,
setting core.i18n in global config is probably the better choice
(compared to NO_GETTEXT=y) for those who are frustrated by git's
translation in their usual $LANG.
[git svn should pass that LANG to svn also etc.]
The question is whether we have people who prefer to work with git in
their $LANG even though project interaction requires a different
language. They would probably run log/gitk/commit... in their $LANG but
need format-patch and the like in project-lang.
I do think we have people in this category here on the list, so they
should speak up ;) Could they alias their format-patch to use "-c
core.i18n=C" or such? Or have <command>.i18n on top? per-command config
again ;)
Michael
next prev parent reply other threads:[~2012-09-14 10:42 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-25 19:26 [PATCH RFC 0/2] Mixing English and a local language Nguyễn Thái Ngọc Duy
2012-08-25 19:26 ` [PATCH 1/2] Allow to print diffstat in English regardless current locale Nguyễn Thái Ngọc Duy
2012-08-25 19:26 ` [PATCH 2/2] format-patch: always print diffstat in English Nguyễn Thái Ngọc Duy
2012-09-12 14:05 ` [PATCH RFC 0/2] Mixing English and a local language Nguyen Thai Ngoc Duy
2012-09-12 18:18 ` Junio C Hamano
2012-09-13 13:28 ` Jeff King
2012-09-13 14:16 ` [PATCH] Revert diffstat back to English Nguyễn Thái Ngọc Duy
2012-09-13 14:57 ` Jeff King
2012-09-13 17:39 ` Junio C Hamano
2012-09-13 18:40 ` Junio C Hamano
2012-09-13 21:01 ` Jeff King
2012-09-13 21:10 ` Junio C Hamano
2012-09-13 21:20 ` Jeff King
2012-09-13 21:26 ` Junio C Hamano
2012-09-13 21:31 ` Jeff King
2012-09-13 21:47 ` Junio C Hamano
2012-09-14 0:11 ` Jeff King
2012-09-14 11:56 ` Nguyen Thai Ngoc Duy
2012-09-14 16:54 ` Junio C Hamano
2012-09-15 2:41 ` Nguyen Thai Ngoc Duy
2012-09-13 17:30 ` [PATCH RFC 0/2] Mixing English and a local language Junio C Hamano
2012-09-13 17:52 ` Junio C Hamano
2012-09-13 18:04 ` Jeff King
2012-09-13 18:00 ` Jeff King
2012-09-14 10:41 ` Michael J Gruber [this message]
2012-09-14 11:35 ` Nguyen Thai Ngoc Duy
2012-09-14 12:40 ` [PATCH] Makefile: respect $LINGUAS variable on selecting .mo files to install Nguyễn Thái Ngọc Duy
2012-09-14 13:06 ` Michael J Gruber
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=505309EC.8040400@drmicha.warpmail.net \
--to=git@drmicha.warpmail.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=pclouds@gmail.com \
--cc=peff@peff.net \
/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.