From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18840 invoked by alias); 24 Feb 2010 04:09:18 -0000 Received: (qmail 18826 invoked by uid 22791); 24 Feb 2010 04:09:18 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from rcsinet12.oracle.com (HELO rcsinet12.oracle.com) (148.87.113.124) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Feb 2010 04:09:14 +0000 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o1O49AFT013092 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 24 Feb 2010 04:09:11 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o1O499Xh022777; Wed, 24 Feb 2010 04:09:09 GMT Received: from abhmt015.oracle.com by acsmt354.oracle.com with ESMTP id 44364451266984491; Tue, 23 Feb 2010 20:08:11 -0800 Received: from [10.182.121.28] (/10.182.121.28) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 23 Feb 2010 20:08:10 -0800 Message-ID: <4B84A60B.5020709@oracle.com> Date: Wed, 24 Feb 2010 06:47:00 -0000 From: Shujing Zhao User-Agent: Thunderbird 2.0.0.23 (X11/20090812) MIME-Version: 1.0 To: Marco Poletti CC: Jakub Jelinek , Paolo Bonzini , "Joseph S. Myers" , gdr@integrable-solutions.net, Gabriel Dos Reis , gcc-patches@gcc.gnu.org, Paolo Carlini Subject: Re: gcc/cp/pt.c: use ngettext() when needed References: <206fcf961002170906l1bdca005h3833890d35d7db5c@mail.gmail.com> <4B7C3571.60808@gnu.org> <20100218144545.GV2817@tyan-ft48-01.lab.bos.redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2010-02/txt/msg00956.txt.bz2 On 02/22/2010 05:25 PM, Marco Poletti wrote: >> @@ -112,6 +112,8 @@ function keyword_option(line) { >> else if (args ~ /c$/) >> format="c-format" >> >> + if (name ~ /_n$/) n = n "," (n + 1) >> + >> if (n == 1) { keyword = "--keyword=" name } >> else { keyword = "--keyword=" name ":" n } >> if (format) { >> > Marco, xgettext can't accept the --flag argument that have more than one argnums. It will have the argnums like 2,3 if the above code added. How about to only use the conditional expression like error (TREE_VEC_LENGTH (parms) > 1 ? G_("redeclared with %d template parameters") : G_("redeclared with %d template parameter"), TREE_VEC_LENGTH (parms)); it changed less to fix this problem. Pearly