This is the mail archive of the
mailing list for the GDB project.
Re: [v8] multi-executable support
On Wednesday 14 October 2009 17:24:21, Tom Tromey wrote:
> >>>>> "Pedro" == Pedro Alves <firstname.lastname@example.org> 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",
Thanks, had seen that. I had noticed that gdb_locale.h doesn't wrap
ngettext, and GDB doesn't use it anywhere, so I just perhaps wrongly
assumed that ngettext would be missing on some non-GNU gettext
In any case, I'm not concerned that users will miss the
sentence, so I'll just drop it.
> Glancing at the patch it seems to be missing some _() calls in this
Eh, indeed. I'll go through the patch to see if more are