From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 501 invoked by alias); 7 Dec 2004 19:35:56 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 472 invoked from network); 7 Dec 2004 19:35:51 -0000 Received: from unknown (HELO balder.inter.net.il) (192.114.186.15) by sourceware.org with SMTP; 7 Dec 2004 19:35:51 -0000 Received: from zaretski ([80.230.156.125]) by balder.inter.net.il (Mirapoint Messaging Server MOS 3.3.7-GR) with ESMTP id DWY33927 (AUTH halo1); Tue, 7 Dec 2004 21:35:18 +0200 (IST) Date: Tue, 07 Dec 2004 19:59:00 -0000 From: "Eli Zaretskii" To: Kevin Buettner Message-ID: <01c4dc94$Blat.v2.2.2$11a038c0@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 CC: gdb-patches@sources.redhat.com In-reply-to: <20041207095217.5a7dae23.kevinb@redhat.com> (message from Kevin Buettner on Tue, 7 Dec 2004 09:52:17 -0700) Subject: Re: i18n, part 2 Reply-to: Eli Zaretskii References: <20041204195702.GA25306@ata.cs.hun.edu.tr> <20041206103930.6bca4814.kevinb@redhat.com> <01c4dbd5$Blat.v2.2.2$98515300@zahav.net.il> <20041206155114.6bab8d59.kevinb@redhat.com> <01c4dc19$Blat.v2.2.2$c62c4660@zahav.net.il> <20041207095217.5a7dae23.kevinb@redhat.com> X-SW-Source: 2004-12/txt/msg00209.txt.bz2 > Date: Tue, 7 Dec 2004 09:52:17 -0700 > From: Kevin Buettner > Cc: gdb-patches@sources.redhat.com > > Could we use an alternate macro for such cases? This alternate macro > would take two arguments, one of which is the string to be translated, > the other. The other is simply a comment providing context for the > translators. Perhaps something like this? > > #define __(str,context_comment) _(str) I think this would require support in gettext; I don't know enough about gettext facilities to tell if this is possible. Anyway, if we want a comment-like solution, we could try doing something to force gettext insert a comment into the gdb.pot file. Again, I don't know if this is easy, but I'd assume it should be possible. I'll look when I have time.