From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10345 invoked by alias); 24 Jun 2002 18:17:44 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 10333 invoked from network); 24 Jun 2002 18:17:42 -0000 Received: from unknown (HELO gash2.peakpeak.com) (207.174.178.17) by sources.redhat.com with SMTP; 24 Jun 2002 18:17:42 -0000 Received: from fleche.redhat.com (ta0197.peakpeak.com [204.144.244.197] (may be forged)) by gash2.peakpeak.com (8.9.3/8.9.3) with ESMTP id MAA11130; Mon, 24 Jun 2002 12:17:35 -0600 Received: by fleche.redhat.com (Postfix, from userid 1000) id E4EEE4F80B6; Mon, 24 Jun 2002 12:30:39 -0600 (MDT) To: Richard.Earnshaw@arm.com Cc: Gdb List Subject: Re: Questions about gdb and gettext References: <200206241217.NAA08300@cam-mail2.cambridge.arm.com> From: Tom Tromey Reply-To: tromey@redhat.com X-Attribution: Tom X-Zippy: With this weapon I can expose fictional characters and bring about sweeping reforms!! Date: Mon, 24 Jun 2002 11:17:00 -0000 In-Reply-To: <200206241217.NAA08300@cam-mail2.cambridge.arm.com> Message-ID: <87k7ooleb4.fsf@fleche.redhat.com> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-06/txt/msg00219.txt.bz2 >>>>> "Richard" == Richard Earnshaw writes: Tom> It isn't always necessary to mark every string in the source. Tom> You can also tell the xgettext program that certain functions Tom> implicitly translate their argument. So, for instance, we could Tom> set things up so that the first argument to `warning' and `error' Tom> doesn't need any special marking. Richard> How would that save you having to mark the strings? AFAICT Richard> it would just mean that you have to mark them with N_() Richard> rather than _(). We would pass --keyword=error --keyword=warning to xgettext. Tom