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

Re: [PATCH v2] l10n: reformat some localized strings for v2.23.0

From
Jeff King <peff@peff.net>
Date
Aug 5, 2019, 21:15 UTC
Message-ID
<20190805211517.GA359@sigill.intra.peff.net>
In-Reply-To
<xmqqv9vbmoqd.fsf@gitster-ct.c.googlers.com>
On Mon, Aug 05, 2019 at 11:49:46AM -0700, Junio C Hamano wrote:
Show 9 quoted lines
> Jeff King <peff@peff.net> writes:
> 
> >>  		OPT_STRING('s', "source", &opts.from_treeish, "<tree-ish>",
> >> -			   N_("where the checkout from")),
> >> +			   N_("where the checkout is from")),
> >
> > I think your original "where to checkout from" is better.
> 
> Would we even want to do s/where/which tree-ish/?
Yeah, I think that is even better.
Show 7 quoted lines
> > prefix. For advise() we nicely pick out the newlines and prefix each
> > line individually, but warning(), error(), etc, don't do that. Maybe
> > they should.
> 
> Yeah, I'd be surprised that nobody thought of doing that, so perhaps
> somebody tried and failed with a possible fallout.  I do not offhand
> see any downside of teaching them to do the prefixing.

I know we've discussed it before, but a quick search of the archive only came up with instances of me suggesting we should do it. ;)

Besides the obvious fallout you mentioned where callers might need to drop their own custom indenting, it's possible people might be less happy for output like:

  warning: a thing happened to these paths:
          foo
	  bar

where people might prefer not having a prefix on the subsequent lines, because it makes it easier to cut-and-paste.

Anyway, that is all out of scope for this patch.
-Peff
Previous: Junio C HamanoNext: Jean-Noël Avila
Message 9 of 13 in “[L10N] Kickoff for Git 2.23.0 round #1”
  1. Jiang XinJul 30, 2019
  2. [RFC] l10n: fix some typos for v2.23.0Jean-Noël Avila, Aug 3, 2019
  3. Jiang XinAug 3, 2019
  4. l10n: reformat some localized strings for v2.23.0Jean-Noël Avila, Aug 3, 2019
  5. Jeff KingAug 3, 2019
  6. Jean-Noël AVILAAug 4, 2019
  7. Jeff KingAug 5, 2019
  8. Junio C HamanoAug 5, 2019
  9. Jeff KingAug 5, 2019
  10. l10n: reformat some localized strings for v2.23.0Jean-Noël Avila, Aug 6, 2019
  11. Junio C HamanoAug 6, 2019
  12. Jeff KingAug 6, 2019
  13. Junio C HamanoAug 6, 2019

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.