From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21369 invoked by alias); 24 Feb 2009 15:04:01 -0000 Received: (qmail 20981 invoked by uid 22791); 24 Feb 2009 15:03:58 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx2.redhat.com (HELO mx2.redhat.com) (66.187.237.31) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 24 Feb 2009 15:03:52 +0000 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n1OF3mHL021898; Tue, 24 Feb 2009 10:03:48 -0500 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n1OF3mX4007114; Tue, 24 Feb 2009 10:03:48 -0500 Received: from host0.dyn.jankratochvil.net (sebastian-int.corp.redhat.com [172.16.52.221]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n1OF3kV8029548; Tue, 24 Feb 2009 10:03:48 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id n1OF3iuC028546; Tue, 24 Feb 2009 16:03:44 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.2/Submit) id n1OF3X5R028236; Tue, 24 Feb 2009 16:03:33 +0100 Date: Tue, 24 Feb 2009 15:32:00 -0000 From: Jan Kratochvil To: Daniel Jacobowitz Cc: teawater , Eli Zaretskii , "gdb-patches@sourceware.org" Subject: Re: [RFA] Add _() to query Message-ID: <20090224150333.GA7153@host0.dyn.jankratochvil.net> References: <20090224133255.GA25107@caradoc.them.org> <20090224133929.GA30561@host0.dyn.jankratochvil.net> <20090224144826.GA5387@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090224144826.GA5387@caradoc.them.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2009-02/txt/msg00465.txt.bz2 On Tue, 24 Feb 2009 15:48:26 +0100, Daniel Jacobowitz wrote: > On Tue, Feb 24, 2009 at 02:39:29PM +0100, Jan Kratochvil wrote: > > 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 ^^^^ -> _() or gettext() > of query, xgettext will localize all arguments to query in the entire > program. > > This is better for code size and for readability. OK, understood but still I disagree with --keyword=query when considering its pros and cons. Thanks, Jan