{"thread":{"id":"33184","subject":"Re: Delivery Status Notification (Failure)","startedAt":"2013-03-14T22:01:41Z","lastAt":"2013-03-14T23:36:47Z","messageCount":3,"participants":["Harring Figueiredo","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"211330","messageId":"CAN_hzmomGYpfh1MchCnrSwv3jv201DL2wLEXeYrG+=eNKwX4Yw@mail.gmail.com","threadId":"33184","inReplyTo":"bcaec5396b50ba47be04d7e99955@google.com","subject":"Re: Delivery Status Notification (Failure)","fromName":"Harring Figueiredo","fromEmail":"harringf@gmail.com","sentAt":"2013-03-14T22:01:41Z","receivedAt":"2013-03-14T22:01:41Z","isPatch":false,"sender":{"key":"harringf@gmail.com","avatar":null},"body":"Hello folks,\n\n\n Just want to confirm that this is not a bug:\n\n <code>\n bunde.c: 443\n\n  printf_ln(Q_(\"The bundle requires this ref\",\n                                      \"The bundle requires these %d refs\",\n                                      r->nr),\n                                   r->nr);\n\n </code>\n\n seems to be missing %d parameter on the first message.\n Please let me know if this is a bug or if it indeed should be like this.\n\n I am not a expert on gettext :-(\n\n Thank you!\n -hff\n"},{"id":"211331","messageId":"7vsj3xwrzn.fsf@alter.siamese.dyndns.org","threadId":"33184","inReplyTo":"CAN_hzmomGYpfh1MchCnrSwv3jv201DL2wLEXeYrG+=eNKwX4Yw@mail.gmail.com","subject":"Re: Delivery Status Notification (Failure)","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2013-03-14T22:12:28Z","receivedAt":"2013-03-14T22:12:28Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Harring Figueiredo <harringf@gmail.com> writes:\n\n>  Just want to confirm that this is not a bug:\n> ...\n>   printf_ln(Q_(\"The bundle requires this ref\",\n>                                       \"The bundle requires these %d refs\",\n>                                       r->nr),\n>                                    r->nr);\n> ...\n>  seems to be missing %d parameter on the first message.\n\nPerhaps visit\n\n\thttp://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms\n\nlook for \"In the English singular case,...\" and read the\nexplanation there?\n"},{"id":"211339","messageId":"CAN_hzmoSQXHp3JjYYQekA1XAmaAPkWqWYVboncioT7=E-rM9JA@mail.gmail.com","threadId":"33184","inReplyTo":"7vsj3xwrzn.fsf@alter.siamese.dyndns.org","subject":"Re: Delivery Status Notification (Failure)","fromName":"Harring Figueiredo","fromEmail":"harringf@gmail.com","sentAt":"2013-03-14T23:36:47Z","receivedAt":"2013-03-14T23:36:47Z","isPatch":false,"sender":{"key":"harringf@gmail.com","avatar":null},"body":"Got it!\n\nFrom the recommended site:\n\n--\nIn the English singular case, the number – always 1 – can be replaced\nwith \"one\":\n\n          printf (ngettext (\"One file removed\", \"%d files removed\", n), n);\nThis works because the ‘printf’ function discards excess arguments\nthat are not consumed by the format string.\n--\n\nJunio, thank you so much for the  reply and link to the docs.\n\n-hff\n\nOn Thu, Mar 14, 2013 at 6:12 PM, Junio C Hamano <gitster@pobox.com> wrote:\n> Harring Figueiredo <harringf@gmail.com> writes:\n>\n>>  Just want to confirm that this is not a bug:\n>> ...\n>>   printf_ln(Q_(\"The bundle requires this ref\",\n>>                                       \"The bundle requires these %d refs\",\n>>                                       r->nr),\n>>                                    r->nr);\n>> ...\n>>  seems to be missing %d parameter on the first message.\n>\n> Perhaps visit\n>\n>         http://www.gnu.org/software/gettext/manual/gettext.html#Plural-forms\n>\n> look for \"In the English singular case,...\" and read the\n> explanation there?\n>\n"}]}