Re: [PATCH 16/22] run-command.c: mark strings for translation
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Feb 29, 2016, 18:52 UTC
- Message-ID
- <xmqq7fhnbb7j.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <1456555333-5853-17-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> writes:
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com> > ---
This is new and there aren't many non-BUG messages that are not marked, so let's take this one for 2.8.0.
Show 24 quoted lines
> run-command.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/run-command.c b/run-command.c
> index 863dad5..1ee2357 100644
> --- a/run-command.c
> +++ b/run-command.c
> @@ -909,7 +909,7 @@ static int default_start_failure(struct child_process *cp,
> {
> int i;
>
> - strbuf_addstr(err, "Starting a child failed:");
> + strbuf_addstr(err, _("Starting a child failed:"));
> for (i = 0; cp->argv[i]; i++)
> strbuf_addf(err, " %s", cp->argv[i]);
>
> @@ -927,7 +927,7 @@ static int default_task_finished(int result,
> if (!result)
> return 0;
>
> - strbuf_addf(err, "A child failed with return code %d:", result);
> + strbuf_addf(err, _("A child failed with return code %d:"), result);
> for (i = 0; cp->argv[i]; i++)
> strbuf_addf(err, " %s", cp->argv[i]);