git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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.

Previous: Dmitry PotapovNext: Jan Hudec
Message 5 of 20 in “Has anyone looked at Gettext support for Git itself?”
  1. Ævar Arnfjörð BjarmasonMay 15, 2010
  2. Jakub NarebskiMay 16, 2010
  3. Ævar Arnfjörð BjarmasonMay 16, 2010
  4. Dmitry PotapovMay 16, 2010
  5. Ævar Arnfjörð BjarmasonMay 16, 2010
  6. Jan HudecMay 16, 2010
  7. Ævar Arnfjörð BjarmasonMay 16, 2010
  8. Thomas RastMay 17, 2010
  9. Ævar Arnfjörð BjarmasonMay 17, 2010
  10. Thomas RastMay 17, 2010
  11. Jan HudecMay 17, 2010
  12. Will PalmerMay 17, 2010
  13. Michael J GruberMay 18, 2010
  14. Thomas SingerMay 18, 2010
  15. Will PalmerMay 18, 2010
  16. Jan HudecMay 22, 2010
  17. demerphqMay 19, 2010
  18. Thomas SingerMay 16, 2010
  19. Marc WeberMay 17, 2010
  20. Peter KreftingMay 18, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.