This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [v8] multi-executable support


On Wednesday 14 October 2009 17:24:21, Tom Tromey wrote:
> >>>>> "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);
> 

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
implementations.

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
> area.

Eh, indeed.  I'll go through the patch to see if more are
missing.  Thanks.

-- 
Pedro Alves


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]