Re: [PATCH] i18n: disable i18n for shell scripts if NO_GETTEXT defined
- From
Alex Riesen <raa.lkml@gmail.com>
- Date
- Jan 19, 2012, 09:24 UTC
- Message-ID
- <CALxABCZsKHbLCwv0SKGt_M_GoTJ5eQZ3feUR-Ho4hW_TQuoFgg@mail.gmail.com>
- In-Reply-To
- <7vfwfclf4v.fsf@alter.siamese.dyndns.org>
On Thu, Jan 19, 2012 at 01:17, Junio C Hamano <gitster@pobox.com> wrote:
> So we need "MY_GETTEXT_IS_BROKEN" to decline the use of system gettext > in addition to "NO_GETTEXT" to ask Git not to translate the messages. Is > that correct?
I think yes.
Show 6 quoted lines
> If that is the case, should we do something like > > LANG=C LC_ALL=C > export LANG LC_ALL > > in our shell scripts, when building for NO_GETTEXT target?
Just for the record: gettext here stays broken with LANG and LC_ALL set to C. But the locale-dependent formatting in C functions will change. Wont be a problem here, though. The named formatting is broken, too: strftime, for instance, always formats in C locale.