# Re: Delivery Status Notification (Failure)

3 messages from 2013-03-14 to 2013-03-14. Participants: Harring Figueiredo, Junio C Hamano.
Thread: https://gitlist.dev/t/33184

## Harring Figueiredo, 2013-03-14 22:01

Subject: Re: Delivery Status Notification (Failure)
Message-ID: <CAN_hzmomGYpfh1MchCnrSwv3jv201DL2wLEXeYrG+=eNKwX4Yw@mail.gmail.com>
URL: https://gitlist.dev/e/CAN_hzmomGYpfh1MchCnrSwv3jv201DL2wLEXeYrG%2B%3DeNKwX4Yw%40mail.gmail.com
In-Reply-To: <bcaec5396b50ba47be04d7e99955@google.com>

```
Hello folks,


 Just want to confirm that this is not a bug:

 <code>
 bunde.c: 443

  printf_ln(Q_("The bundle requires this ref",
                                      "The bundle requires these %d refs",
                                      r->nr),
                                   r->nr);

 </code>

 seems to be missing %d parameter on the first message.
 Please let me know if this is a bug or if it indeed should be like this.

 I am not a expert on gettext :-(

 Thank you!
 -hff

```

## Junio C Hamano, 2013-03-14 22:12

Subject: Re: Delivery Status Notification (Failure)
Message-ID: <7vsj3xwrzn.fsf@alter.siamese.dyndns.org>
URL: https://gitlist.dev/e/7vsj3xwrzn.fsf%40alter.siamese.dyndns.org
In-Reply-To: <CAN_hzmomGYpfh1MchCnrSwv3jv201DL2wLEXeYrG+=eNKwX4Yw@mail.gmail.com>

```
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?

```

## Harring Figueiredo, 2013-03-14 23:36

Subject: Re: Delivery Status Notification (Failure)
Message-ID: <CAN_hzmoSQXHp3JjYYQekA1XAmaAPkWqWYVboncioT7=E-rM9JA@mail.gmail.com>
URL: https://gitlist.dev/e/CAN_hzmoSQXHp3JjYYQekA1XAmaAPkWqWYVboncioT7%3DE-rM9JA%40mail.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:
> 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?
>

```
