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

Re: [Improvements on messages 0/5] Disambuiguate between options and commands

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 16, 2024, 18:43 UTC
Message-ID
<xmqqa5o0i71o.fsf@gitster.g>
In-Reply-To
<20240216101647.28837-1-ash@kambanaria.org>
Alexander Shopov <ash@kambanaria.org> writes:
Show 8 quoted lines
> These are trivial fixes to messages.
> They make sure commands and options are markes as such.
> This will help translators and end users.
> This will also reduce the special cases Jiang Xin keeps
> for git-po-helper which will ease maintenance.
>
> I am basing these on maint but I have also checked that
> they ar still relevant by cherry picking on top of latest and next.
I've looked at all of them and they looked sensible.
The changes look like this:
	-	die(_("something option something: %s"), arg);
	+	die(_("something --option something: %s"), arg);

It is not a fault of this patch, but wasn't the concensus that the ideal form would be more like this:

		die(_("something %s something: %s"), "--option", arg);

in order to completely avoid tempting translators into touching "--option", IIRC?

These patches do not make things worse, so I am willing to say they are strict improvements and the series is a good first step if we wanted to follow through to eject option names out of translatable strings later.

Thanks.
Previous: Alexander ShopovNext: Junio C Hamano
Message 8 of 9 in “[Improvements on messages 0/5] Disambuiguate between options and commands”
  1. Alexander ShopovFeb 16, 2024
  2. 1/5 rebase: trivial fix of error messageAlexander Shopov, Feb 16, 2024
  3. Alex HenrieFeb 16, 2024
  4. 2/5 transport-helper.c: trivial fix of error messageAlexander Shopov, Feb 16, 2024
  5. 3/5 builtin/remote.c: trivial fix of error messageAlexander Shopov, Feb 16, 2024
  6. 4/5 builtin/clone.c: trivial fix of messageAlexander Shopov, Feb 16, 2024
  7. 5/5 revision.c: trivial fix to messageAlexander Shopov, Feb 16, 2024
  8. Junio C HamanoFeb 16, 2024
  9. Junio C HamanoMar 5, 2024

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.