Re: [v8] multi-executable support

Tom Tromey
2009-10-14T16:25:00Z

>>>>> "Pedro" == Pedro Alves <pedro@codesourcery.com> writes:

Pedro> Any suggestions? Assuming languages have only singular and one
Pedro> plural form [if (n == 1) else ...] is frowned uppon as well.
Pedro> "1 inferior(s) added." ?
Pedro> "Added 1 inferior(s)." ?
Pedro> Just drop the sentence?

gettext has support for this. See (info "(gettext)Plural Forms"),
specifically the "ngettext" function.

In this case I think you would write:

printf_filtered (ngettext ("%d inferior added.\n", "%d inferiors added.\n",
copies),
copies);

Glancing at the patch it seems to be missing some _() calls in this
area.

Tom