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

Re: [PATCH v2] i18n: fix typos found during l10n for git 2.34.0

From
Jiang Xin <worldhello.net@gmail.com>
Date
Nov 4, 2021, 01:27 UTC
Message-ID
<CANYiYbE9=HZk2wD0u4uPGT9Mv2nZZis-s31fvG0QzhM7HmRisg@mail.gmail.com>
In-Reply-To
<xmqqpmrh8atl.fsf@gitster.g>
On Thu, Nov 4, 2021 at 12:26 AM Junio C Hamano <gitster@pobox.com> wrote:
Show 29 quoted lines
>
> Bagas Sanjaya <bagasdotme@gmail.com> writes:
>
> >> diff --git a/ref-filter.c b/ref-filter.c
> >> index 282cdad103..08a3f839c9 100644
> >> --- a/ref-filter.c
> >> +++ b/ref-filter.c
> >> @@ -1037,7 +1037,7 @@ int verify_ref_format(struct ref_format *format)
> >>                   format->quote_style == QUOTE_TCL) &&
> >>                   used_atom[at].atom_type == ATOM_RAW &&
> >>                   used_atom[at].u.raw_data.option == RAW_BARE)
> >> -                    die(_("--format=%.*s cannot be used with"
> >> +                    die(_("--format=%.*s cannot be used with "
> >>                            "--python, --shell, --tcl"), (int)(ep - sp - 2), sp + 2);
> >>              cp = ep + 1;
> >>
> >
> > Why not using \n?
>
> It is not quite clear to me why it should.
>
> Among the possible string that is (ep - sp - 2) bytes long (i.e.
> --python, --shell, --tcl, --raw), even with the longest, the
> resulting message would become
>
>     fatal: --format=--python cannot be used with
>     --python, --shell, --tcl.
>
> that is unusually short with such a newline in the middle.

In order to detect typos in new i18n messages added upstream in time, a new CI workflow has been added in the "pot/CI" branch. See:

    https://github.com/git-l10n/git-po/blob/pot/CI/.github/workflows/git-pot.yml

This workflow will be triggered several times a day, and changes of i18n messages will be saved as "YYYY-mm-dd.diff" in the following branches:

* https://github.com/git-l10n/git-po/tree/pot/master
* https://github.com/git-l10n/git-po/tree/pot/next
* https://github.com/git-l10n/git-po/tree/pot/seen

L10n contributors can also refer to the "po/git.pot" file in the "pot/master" branch to prepare translations in advance.

-- Jiang Xin

Previous: Junio C HamanoNext: ZheNing Hu
Message 7 of 8 in “[L10N] Kickoff for Git 2.34.0 round #1”
  1. Jiang XinOct 30, 2021
  2. i18n: fix typos found during l10n for git 2.34.0Jiang Xin, Oct 31, 2021
  3. i18n: fix typos found during l10n for git 2.34.0Jiang Xin, Nov 1, 2021
  4. Junio C HamanoNov 1, 2021
  5. Bagas SanjayaNov 2, 2021
  6. Junio C HamanoNov 3, 2021
  7. Jiang XinNov 4, 2021
  8. ZheNing HuNov 2, 2021

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.