This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [v8] multi-executable support
>>>>> "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