From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 961 invoked by alias); 7 Dec 2004 16:52:41 -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 936 invoked from network); 7 Dec 2004 16:52:34 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 7 Dec 2004 16:52:34 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iB7GqTLM000418 for ; Tue, 7 Dec 2004 11:52:29 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iB7GqOr07036; Tue, 7 Dec 2004 11:52:24 -0500 Received: from localhost.localdomain (vpn50-35.rdu.redhat.com [172.16.50.35]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id iB7GqNGE016634; Tue, 7 Dec 2004 11:52:23 -0500 Received: from ironwood.lan (ironwood.lan [192.168.64.8]) by localhost.localdomain (8.12.11/8.12.10) with SMTP id iB7GqIqs017386; Tue, 7 Dec 2004 09:52:18 -0700 Date: Tue, 07 Dec 2004 17:28:00 -0000 From: Kevin Buettner To: Eli Zaretskii Cc: gdb-patches@sources.redhat.com Subject: Re: i18n, part 2 Message-ID: <20041207095217.5a7dae23.kevinb@redhat.com> In-Reply-To: <01c4dc19$Blat.v2.2.2$c62c4660@zahav.net.il> 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> Organization: Red Hat Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-SW-Source: 2004-12/txt/msg00203.txt.bz2 On Tue, 07 Dec 2004 07:00:10 +0200 "Eli Zaretskii" wrote: > > Date: Mon, 6 Dec 2004 15:51:14 -0700 > > From: Kevin Buettner > > > > The code in question is simply outputting a list of attributes > > associated with a particular thread. How should we make the necessary > > context available to the translator without putting an undue burden > > on GDB maintainers? > > I suggested a way to do that. I don't think it's putting an undue > burden on us, but if someone comes with a better idea, I will gladly > vote in favor. Just let's not assume the problem does not exist. 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) Then, for "suspended" and other such attributes, we could put something like this in the code: __("suspended", "thread-id attribute") The nice thing about this is that the comment string can contain anything; if a translator finds that not enough information is contained in the string, they can provides suggestions to us to make it more useful. Kevin