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
Junio C Hamano <gitster@pobox.com>
Date
Aug 5, 2019, 18:49 UTC
Message-ID
<xmqqv9vbmoqd.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20190803234522.GA5417@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 5 quoted lines
>>  		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/?
Show 16 quoted lines
> translators, but note that the output will be different. The original
> would be something like:
>
>   warning: Fetch normally indicates...
>   warning: To re-enable...
>
> where now we'd get:
>
>   warning: Fetch normally indicates...
>   check has been disabled...
>   or run 'git config...
>
> which might be a bit harder to read because the wrapped lines lose the
> 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.

For existing multi-line warnings that uses a single call to warning(), I think the preparer of the message manually indents the second and subsequent line by a run of SPs to match the screen width of "warning:" prefix (and expect translators to do the same with their language), and we need to get rid of that kind of "hack" when we insert a middle layer between *_builtin() and vreportf() to do the line chomping to produce output similar to advise() code.

> That's too big for this late in the -rc cycle, I think.

Agreed. Thanks.

Previous: Jeff KingNext: Jeff King
Message 8 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.