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

Re: Delivery Status Notification (Failure)

From
HFHarring Figueiredo <harringf@gmail.com>
Date
Mar 14, 2013, 23:36 UTC
Message-ID
<CAN_hzmoSQXHp3JjYYQekA1XAmaAPkWqWYVboncioT7=E-rM9JA@mail.gmail.com>
In-Reply-To
<7vsj3xwrzn.fsf@alter.siamese.dyndns.org>
Got it!
From the recommended site:

-- In the English singular case, the number – always 1 – can be replaced with "one":

          printf (ngettext ("One file removed", "%d files removed", n), n);
This works because the ‘printf’ function discards excess arguments
that are not consumed by the format string.
--
Junio, thank you so much for the  reply and link to the docs.
-hff
On Thu, Mar 14, 2013 at 6:12 PM, Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
> Harring Figueiredo <harringf@gmail.com> writes:
>
>>  Just want to confirm that this is not a bug:
>> ...
>>   printf_ln(Q_("The bundle requires this ref",
>>                                       "The bundle requires these %d refs",
>>                                       r->nr),
>>                                    r->nr);
>> ...
>>  seems to be missing %d parameter on the first message.
>
> Perhaps visit
>
>         http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms
>
> look for "In the English singular case,..." and read the
> explanation there?
>
Previous: Junio C Hamano
Message 3 of 3 in “Re: Delivery Status Notification (Failure)”
  1. Harring FigueiredoMar 14, 2013
  2. Junio C HamanoMar 14, 2013
  3. Harring FigueiredoMar 14, 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.