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

Re: [PATCH] status merge: guarentee space between msg and path

From
Sandy Carter <sandy.carter@savoirfairelinux.com>
Date
Mar 11, 2014, 20:22 UTC
Message-ID
<531F706C.1080901@savoirfairelinux.com>
In-Reply-To
<xmqqeh28pkuu.fsf@gitster.dls.corp.google.com>
Le 2014-03-11 15:59, Junio C Hamano a écrit :
Show 19 quoted lines
> Sandy Carter <sandy.carter@savoirfairelinux.com> writes:
>
>> diff --git a/wt-status.c b/wt-status.c
>> index a452407..69e0dfc 100644
>> --- a/wt-status.c
>> +++ b/wt-status.c
>> @@ -264,7 +264,7 @@ static void wt_status_print_unmerged_data(struct wt_status *s,
>>   	case 6: how = _("both added:"); break;
>>   	case 7: how = _("both modified:"); break;
>>   	}
>> -	status_printf_more(s, c, "%-20s%s\n", how, one);
>> +	status_printf_more(s, c, "%-19s %s\n", how, one);
>>   	strbuf_release(&onebuf);
>>   }
>
> Thanks; I have to wonder if we would want to do something similar to
> what 3651e45c (wt-status: take the alignment burden off translators,
> 2013-11-05) to the other parts of the output, though.
>

I could, do this. It would be cleaner, but there's just the issue of the colon (:) which requires a space before it in the french language[1]. As you can see in po/fr.po, the french translators have done a good job at including it [2].

3651e45c takes the colon out of the control of the translators.
+       if (status == DIFF_STATUS_COPIED || status == DIFF_STATUS_RENAMED)
+               status_printf_more(s, c, "%s:%.*s%s -> %s",
+                                  what, len, padding, one, two);
+       else
+               status_printf_more(s, c, "%s:%.*s%s",
+                                  what, len, padding, one);

[1] https://en.wikipedia.org/wiki/Colon_%28punctuation%29#Spacing [2] https://github.com/git/git/blob/master/po/fr.po#L585

Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 10 in “status merge: guarentee space between msg and path”
  1. status merge: guarentee space between msg and pathSandy Carter, Mar 11, 2014
  2. Junio C HamanoMar 11, 2014
  3. Sandy CarterMar 11, 2014
  4. Junio C HamanoMar 11, 2014
  5. Duy NguyenMar 11, 2014
  6. Junio C HamanoMar 12, 2014
  7. status merge: guarentee space between msg and pathSandy Carter, Mar 11, 2014
  8. Junio C HamanoMar 12, 2014
  9. Sandy CarterMar 12, 2014
  10. Junio C HamanoMar 12, 2014

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.