Re: Has anyone looked at Gettext support for Git itself?
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- May 16, 2010, 13:12 UTC
- Message-ID
- <AANLkTilWXqXUtDU-r6j6DwBJWK3JoQNwGnnQPHQWhIUF@mail.gmail.com>
- In-Reply-To
- <20100516053651.GB17200@dpotapov.dyndns.org>
On Sun, May 16, 2010 at 05:36, Dmitry Potapov <dpotapov@gmail.com> wrote:
> 'echo -n' is not portable, and it is not used in git for this reason.
> If gettext does not add the trailing newline to the message then it is > clearly not equivalent replacement.
That was just meant to be a non-working example of how we could read gettext from .sh too. I didn't actually try to run it. Obviously a real implementation wouldn't use 'echo -n' and wouldn't suffer from newline issues.
I just wanted to show that regardless of whether the program is in C, Perl or Shell a gettext implementation can degrade gracefully. That's all.