Re: [PATCH v2] fetch-pack: parameterize message containing 'ready' keyword

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Nov 18, 2021 at 5:35 AM Bagas Sanjaya <bagasdotme@xxxxxxxxx> wrote:
> The protocol keyword 'ready' isn't meant for translation. Pass it as
> parameter instead of spell it in die() message (and potentially confuse
> translators).
>
> Signed-off-by: Bagas Sanjaya <bagasdotme@xxxxxxxxx>
> ---
> diff --git a/fetch-pack.c b/fetch-pack.c
> @@ -1410,9 +1410,13 @@ static int process_ack(struct fetch_negotiator *negotiator,
>         if (*received_ready && reader->status != PACKET_READ_DELIM)
> -               die(_("expected packfile to be sent after 'ready'"));
> +               /* TRANSLATORS: The parameter will be 'ready', a protocol
> +                * keyword */
> +               die(_("expected packfile to be sent after '%s"), "ready");

Missing closing single-quote after %s.

>         if (!*received_ready && reader->status != PACKET_READ_FLUSH)
> -               die(_("expected no other sections to be sent after no 'ready'"));
> +               /* TRANSLATORS: The parameter will be 'ready', a protocol
> +                * keyword */
> +               die(_("expected no other sections to be sent after no '%s"), "ready");

Missing closing single-quote after %s.

>         return 0;
>  }



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux