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

Re: [PATCH] For Real - Fixed pluralization in diff reports

From
Jeff King <peff@peff.net>
Date
Aug 1, 2011, 18:38 UTC
Message-ID
<20110801183812.GA16438@sigill.intra.peff.net>
In-Reply-To
<CAGdFq_j0Hr4LMaFC3irS8rhv2N0ePz_t8xpNTDCA-arC-E2UDA@mail.gmail.com>
On Mon, Aug 01, 2011 at 08:32:51PM +0200, Sverre Rabbelier wrote:
Show 10 quoted lines
> On Mon, Aug 1, 2011 at 20:27, Jon Forrest <nobozo@gmail.com> wrote:
> > I entirely agree. My point is only that the various tests
> > that expect the current behavior will have to be changed
> > whether the implementation of correct plurals uses my
> > inferior method or the way more correct i18n method.
> 
> Wouldn't it be a nice hack if we just solved problem through i18n
> then? Have all the plumbing see the current wording, but through i18n
> change it to something grammatically correct for the porcelain.
> Probably not possible, but a nice daydream :).

I thought there was still some question of whether this text was something that should be script-parseable. If it is, then it shouldn't be i18n'd at all, nor should we lightly change the format with pluralization magic. And if it isn't, then we should definitely go the full i18n route. So in either case, the original patch isn't appropriate.

I don't have a strong opinion myself. I tend to lean towards i18n-ing it, because any scripts should be using --numstat to parse, anyway. OTOH, as Junio pointed out, we are matching the output of much older tools, so pre-git scripts might be written to read the --stat format. I've never seen such a script, and I have no idea how many there really are.

-Peff
Previous: Sverre RabbelierNext: Jakub Narebski
Message 10 of 12 in “For Real - Fixed pluralization in diff reports”
  1. For Real - Fixed pluralization in diff reportsJon Forrest, Aug 1, 2011
  2. Nguyen Thai Ngoc DuyAug 1, 2011
  3. Jon ForrestAug 1, 2011
  4. Nguyen Thai Ngoc DuyAug 1, 2011
  5. Sverre RabbelierAug 1, 2011
  6. Jon ForrestAug 1, 2011
  7. Jeff KingAug 1, 2011
  8. Jon ForrestAug 1, 2011
  9. Sverre RabbelierAug 1, 2011
  10. Jeff KingAug 1, 2011
  11. Jakub NarebskiAug 3, 2011
  12. Jon ForrestAug 3, 2011

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.