[v8] multi-executable support
Tom Tromey
tromey@redhat.com
Wed Oct 14 16:25:00 GMT 2009
>>>>> "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
More information about the Gdb-patches
mailing list