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

Translating error messages in Git (was: Re: [PATCH v3] git checkout: create unparented branch by --orphan)

From
Jakub Narebski <jnareb@gmail.com>
Date
Mar 22, 2010, 16:06 UTC
Message-ID
<m3d3ywjq8p.fsf_-_@localhost.localdomain>
In-Reply-To
<55bacdd31003220714qa9fb915k9fe152019b4d88b4@mail.gmail.com>
Erick Mattos <erick.mattos@gmail.com> writes:
Show 5 quoted lines
> After this wonderful English and modesty lessons, I started thinking:
> since Git is a worldwide spread software why it is not using gettext
> to have its translations?  It would not be a hard job because gettext
> separates the job of translation from normal work flow with just minor
> changes to inline message constants.
Git uses gettext, but only for gitk and git-gui.

The problem is that git is written in C (which can use gettext), Perl (which can use Locale::Maketext / Locale::Maketext::Gettext), but has also some commands that are written in (POSIX) shell script. The $"..." syntax for message localization is bash-ism, and additionally it is deprecated

-- 
Jakub Narebski
Poland
ShadeHawk on #git
Previous: Erick MattosNext: Junio C Hamano
Message 12 of 13 in “git checkout: create unparented branch by --orphan”
  1. git checkout: create unparented branch by --orphanErick Mattos, Mar 21, 2010
  2. Peter BaumannMar 21, 2010
  3. Erick MattosMar 21, 2010
  4. Junio C HamanoMar 21, 2010
  5. Erick MattosMar 21, 2010
  6. Michael J GruberMar 22, 2010
  7. Chris JohnsenMar 22, 2010
  8. Erick MattosMar 22, 2010
  9. Junio C HamanoMar 21, 2010
  10. Chris JohnsenMar 22, 2010
  11. Erick MattosMar 22, 2010
  12. Translating error messages in Git (was: Re: [PATCH v3] git checkout: create unparented branch by --orphan)Jakub Narebski, Mar 22, 2010
  13. Junio C HamanoMar 22, 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.