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

Re: [PATCH] Collocate strings to simplify translation

From
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Date
May 24, 2012, 08:32 UTC
Message-ID
<4FBDF21F.1010807@in.waw.pl>
In-Reply-To
<1337845288-7656-1-git-send-email-vfr@lyx.org>
On 05/24/2012 09:41 AM, Vincent van Ravesteijn wrote:
Show 18 quoted lines
> The translation of 'Untracked' and 'Ignored' might depend on the following
> word. To help the translator, this patch collocates the term 'files'.
> 
> Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org>
> ---
>  wt-status.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/wt-status.c b/wt-status.c
> index dd6d8c4..9b65a8c 100644
> --- a/wt-status.c
> +++ b/wt-status.c
> @@ -185,7 +185,7 @@ static void wt_status_print_other_header(struct wt_status *s,
>  					 const char *how)
>  {
>  	const char *c = color(WT_STATUS_HEADER, s);
> -	status_printf_ln(s, c, _("%s files:"), what);
> +	status_printf_ln(s, c, _("%s:"), what);
How can "%s:" be translated? _() should be removed here.
Show 12 quoted lines
>  	if (!advice_status_hints)
>  		return;
>  	status_printf_ln(s, c, _("  (use \"git %s <file>...\" to include in what will be committed)"), how);
> @@ -766,9 +766,9 @@ void wt_status_print(struct wt_status *s)
>  		wt_status_print_submodule_summary(s, 1);  /* unstaged */
>  	}
>  	if (s->show_untracked_files) {
> -		wt_status_print_other(s, &s->untracked, _("Untracked"), "add");
> +		wt_status_print_other(s, &s->untracked, _("Untracked files"), "add");
>  		if (s->show_ignored_files)
> -			wt_status_print_other(s, &s->ignored, _("Ignored"), "add -f");
> +			wt_status_print_other(s, &s->ignored, _("Ignored files"), "add -f");
This part is looks sensible.
>  	} else if (s->commitable)
>  		status_printf_ln(s, GIT_COLOR_NORMAL, _("Untracked files not listed%s"),
>  			advice_status_hints
Zbyszek
Previous: Vincent van RavesteijnNext: Vincent van Ravesteijn
Message 2 of 5 in “Collocate strings to simplify translation”
  1. Collocate strings to simplify translationVincent van Ravesteijn, May 24, 2012
  2. Zbigniew Jędrzejewski-SzmekMay 24, 2012
  3. Vincent van RavesteijnMay 24, 2012
  4. Johannes SixtMay 24, 2012
  5. Vincent van RavesteijnMay 24, 2012

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.