From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13215 invoked by alias); 26 Feb 2010 10:09:00 -0000 Received: (qmail 13199 invoked by uid 22791); 26 Feb 2010 10:08:59 -0000 X-SWARE-Spam-Status: No, hits=-7.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 26 Feb 2010 10:08:54 +0000 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1QA8haT018477 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 26 Feb 2010 05:08:43 -0500 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx03.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1QA8g8h018302 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 26 Feb 2010 05:08:43 -0500 Received: from tyan-ft48-01.lab.bos.redhat.com (localhost [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.3/8.14.3) with ESMTP id o1QA8s1p019401; Fri, 26 Feb 2010 11:08:54 +0100 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.3/8.14.3/Submit) id o1QA8rRW019399; Fri, 26 Feb 2010 11:08:53 +0100 Date: Fri, 26 Feb 2010 10:43:00 -0000 From: Jakub Jelinek To: Paolo Bonzini Cc: Shujing Zhao , 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 Message-ID: <20100226100853.GU2817@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek 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> <4B879CA3.9080603@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4B879CA3.9080603@gnu.org> User-Agent: Mutt/1.5.20 (2009-08-17) 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/msg01130.txt.bz2 On Fri, Feb 26, 2010 at 11:04:19AM +0100, Paolo Bonzini wrote: > > >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;" I believe it is still Plural-Forms: nplurals=3; plural=n%100/10==1 ? 2 : n%10==1 ? 0 : (n+9)%10>3 ? 2 : 1; for Czech, anyway, it doesn't matter here much and it is up to the translators. Jakub