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

Re: [PATCH] i18n: make the translation of -u advise in one go

From
Jonathan Nieder <jrnieder@gmail.com>
Date
Apr 12, 2013, 02:55 UTC
Message-ID
<20130412025501.GB3266@elie.Belkin>
In-Reply-To
<4003e29bb04b122897cefe2a8057266e2428dce5.1365734618.git.worldhello.net@gmail.com>
Hi,
Jiang Xin wrote:
> Since status_vprintf() called by status_printf_ln() can handle eol in
> buffer, we could simply join these lines into one paragraph.
Good idea.
[...]
Show 7 quoted lines
> --- a/wt-status.c
> +++ b/wt-status.c
> @@ -1223,16 +1223,12 @@ void wt_status_print(struct wt_status *s)
>  		if (s->show_ignored_files)
>  			wt_status_print_other(s, &s->ignored, _("Ignored files"), "add -f");
>  		if (advice_status_u_option && 2000 < s->untracked_in_ms) {
> -			status_printf_ln(s, GIT_COLOR_NORMAL, "");
Tiny nit: I'd suggest keeping the above line, making it:
			status_printf_ln(s, GIT_COLOR_NORMAL, "");
			status_printf_ln(s, GIT_COLOR_NORMAL,
					_("It took ..."
					  "... status')."),
					s->untracked_in_ms / 1000.0);

That way, the message to be translated doesn't start with a newline, so translators don't have to worry about preserving it (or removing it if the layout ever changes in the future, etc).

With that change,
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Thanks.
Previous: Eric SunshineNext: Jiang Xin
Message 3 of 4 in “i18n: make the translation of -u advise in one go”
  1. i18n: make the translation of -u advise in one goJiang Xin, Apr 12, 2013
  2. Eric SunshineApr 12, 2013
  3. Jonathan NiederApr 12, 2013
  4. i18n: make the translation of -u advice in one goJiang Xin, Apr 12, 2013

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.