Re: Delivery Status Notification (Failure)

2 messages, 2 authors, 2016-06-15 · open the first message on its own page

Re: Delivery Status Notification (Failure)

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:56:24

Harring Figueiredo [off-list ref] 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?

Re: Delivery Status Notification (Failure)

From: Harring Figueiredo <hidden>
Date: 2016-06-15 22:56:24

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 [off-list ref] wrote:
Harring Figueiredo [off-list ref] writes:
quoted
 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?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help