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

Re: [PATCH 1/2] Command names should not be translated.

From
Peter Krefting <peter@softwolves.pp.se>
Date
Sep 13, 2010, 05:07 UTC
Message-ID
<alpine.DEB.2.00.1009130706450.29710@perkele.intern.softwolves.pp.se>
In-Reply-To
<AANLkTinN_fDAVVuT1ygCe7gMpHqAhL4GGjrZ98igbbP3@mail.gmail.com>
Ævar Arnfjörð Bjarmason:
Show 8 quoted lines
> I disagree with all those. These don't end up being used in a context like:
>
>    die("git-%s: error ...", command);
>
> But:
>
>    die(_("Refusing to %s notes in %s (outside of refs/notes/)"),
>        _(subcommand), t->ref);

You are right. I saw the first as a duplicate source of the wt-status.c command name that I got for translation. Drop these, then.

Still the construct is a bit awkward, but possibly doable, at least for my language.

Show 6 quoted lines
> These however are good, because here it gets used as:
>
>    color_fprintf_ln(s->fp, c, _("#   (use \"git %s <file>...\" to
> include in what will be committed)"), how);
>
> I.e. this is purely a hardcoded command name.
Indeed.
-- 
\\// Peter - http://www.softwolves.pp.se/
Previous: Ævar Arnfjörð Bjarmason
Message 3 of 3 in “Command names should not be translated.”
  1. 1/2 Command names should not be translated.Peter Krefting, Sep 12, 2010
  2. Ævar Arnfjörð BjarmasonSep 12, 2010
  3. Peter KreftingSep 13, 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.