This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Add _() to query
On Tue, Feb 24, 2009 at 02:39:29PM +0100, Jan Kratochvil wrote:
> On Tue, 24 Feb 2009 14:32:55 +0100, Daniel Jacobowitz wrote:
> > On Tue, Feb 24, 2009 at 03:10:51PM +0800, teawater wrote:
> > > I remember you told me that you want to add _() to all query.
> > > I make a patch for it. Do you think it's OK?
> >
> > Before this goes in, could someone see if we could use xgettext
> > --keyword instead? That would let us translate messages in
> > one place instead of all over.
>
> The standard for localized messages is _(). Making the localization more
> magic makes the GDB project less viable for possible development newcomers.
I have trouble believing that.
I got this idea from GCC, which has used it for as long as I can
remember. If you pass --keyword=query, and use N_() inside the body
of query, xgettext will localize all arguments to query in the entire
program.
This is better for code size and for readability.
--
Daniel Jacobowitz
CodeSourcery