Subject: Re: [PATCH 16/22] run-command.c: mark strings for translation

From: Junio C Hamano <[email-masked]>
Date: Mon, 29 Feb 2016 10:52:48 -0800

Nguyễn Thái Ngọc Duy  <[email-masked]> writes:

> Signed-off-by: Nguyễn Thái Ngọc Duy <[email-masked]>
> ---

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.

>  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]);