From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4909 invoked by alias); 26 Feb 2010 10:04:28 -0000 Received: (qmail 4887 invoked by uid 22791); 26 Feb 2010 10:04:28 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail-bw0-f214.google.com (HELO mail-bw0-f214.google.com) (209.85.218.214) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 26 Feb 2010 10:04:24 +0000 Received: by bwz6 with SMTP id 6so1556132bwz.16 for ; Fri, 26 Feb 2010 02:04:22 -0800 (PST) Received: by 10.204.155.69 with SMTP id r5mr139623bkw.0.1267178662025; Fri, 26 Feb 2010 02:04:22 -0800 (PST) Received: from yakj.usersys.redhat.com (93-34-211-208.ip51.fastwebnet.it [93.34.211.208]) by mx.google.com with ESMTPS id 16sm4156464bwz.1.2010.02.26.02.04.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Feb 2010 02:04:20 -0800 (PST) Message-ID: <4B879CA3.9080603@gnu.org> Date: Fri, 26 Feb 2010 10:42:00 -0000 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.1 MIME-Version: 1.0 To: Shujing Zhao CC: Gabriel Dos Reis , Jakub Jelinek , Marco Poletti , "Joseph S. Myers" , gcc-patches@gcc.gnu.org, Paolo Carlini Subject: Re: gcc/cp/pt.c: use ngettext() when needed References: <4B84A60B.5020709@oracle.com> <206fcf961002252308t3883270bpb5d7cd0fd02bf2d@mail.gmail.com> <206fcf961002252331k7f390be1jc96a7025bc34d410@mail.gmail.com> <4B8793BA.8050201@gnu.org> <206fcf961002260132q4aa22a7ep2ff42d145442a971@mail.gmail.com> <20100226093904.GT2817@tyan-ft48-01.lab.bos.redhat.com> <206fcf961002260143v334a4206gc045d9a7b8eb3887@mail.gmail.com> <4B879A27.4010002@oracle.com> In-Reply-To: <4B879A27.4010002@oracle.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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/msg01129.txt.bz2 > I viewed the new generated gcc.pot by this patch, the changed parts are > the following: > > #: cp/pt.c:4667 > #, gcc-internal-format > msgid "redeclared with %d template parameter" > msgid_plural "redeclared with %d template parameters" > msgstr[0] "" > msgstr[1] "" > > #: cp/pt.c:4671 > #, gcc-internal-format > msgid "previous declaration %q+D used %d template parameter" > msgid_plural "previous declaration %q+D used %d template parameters" > msgstr[0] "" > msgstr[1] "" > > Just be curious, how the msgstr will be set at the above example Paolo > indicated. Czech translators have to add a "msgstr[2]" line and add this at the top of the .po file "Plural-Forms: nplurals=3; plural=(n==1) ? 0 : (n>=2 && n<=4) ? 1 : 2;" Paolo