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

Re: [PATCH v2] i18n: mark message helpers prefix for translation

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 22, 2022, 15:23 UTC
Message-ID
<xmqqbkuk7mdb.fsf@gitster.g>
In-Reply-To
<220622.86v8stkt1g.gmgdl@evledraar.gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
> I posted this patch[1] to do the same a while ago, except it also
> translates the "BUG: " message:

We should take this one, exactly because it does not touch BUG(); the messages given to BUG() are not marked for translation, and translating only the "BUG:" prefix does not make much sense.

When BUG messages are shown, it is better if they are conveyed back to us exactly. It would be cumbersome to near-impossible, depending on the language, if a message was given back to me in a script that I do not even know how to type---I'd need to map it back via po/* files with "grep" to locate where the message came from.

Besides, BUG messages are meant not to be seen. We could discuss if it makes more sense to translate the messages and spend engineering resource to mark them with _() while massaging the messages to help deduping, but because the messages are meant primarily for identifying the locations and not explaining situation to human user, I do not see a huge benefit doing so.

Thanks.
Previous: Ævar Arnfjörð BjarmasonNext: Ævar Arnfjörð Bjarmason
Message 4 of 6 in “l10n: mark message helpers prefix for translation.”
  1. l10n: mark message helpers prefix for translation.Dimitriy Ryazantcev via GitGitGadget, Jun 21, 2022
  2. i18n: mark message helpers prefix for translationDimitriy Ryazantcev via GitGitGadget, Jun 21, 2022
  3. Ævar Arnfjörð BjarmasonJun 22, 2022
  4. Junio C HamanoJun 22, 2022
  5. Ævar Arnfjörð BjarmasonJun 22, 2022
  6. Jiang XinJun 21, 2022

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.