From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 23 Jul 2005 19:33:11 +0400 From: Alexey Voinov To: ALT Linux Sisyphus discussion list Subject: Re: [sisyphus] countable nouns Message-ID: <20050723153311.GA27418@altlinux.ru> Mail-Followup-To: ALT Linux Sisyphus discussion list References: <20050722183810.GU24898@solemn.turbinal.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="BXVAT5kNtrzKuDFl" Content-Disposition: inline In-Reply-To: <20050722183810.GU24898@solemn.turbinal.org> User-Agent: Mutt/1.4.2.1i X-BeenThere: sisyphus@altlinux.ru X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ALT Linux Sisyphus discussion list List-Id: ALT Linux Sisyphus discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2005 15:33:12 -0000 Archived-At: List-Archive: --BXVAT5kNtrzKuDFl Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Alexey Tourbin wrote > =EB=C1=CB =D0=D2=C1=D7=C9=CC=D8=CE=CF (=D0=CF-=C1=CE=C7=CC=C9=CA=D3=CB=C9= ) =D3=DE=C9=D4=C1=D4=D8 =D3=D5=DD=C5=D3=D4=D7=C9=D4=C5=CC=D8=CE=D9=C5? >=20 > $ count() > function> { > function> local n=3D"$1"; shift > function> local noun=3D"$1"; shift > function> local plural=3D > function> [ "$n" -gt 1 ] && plural=3Ds > function> echo "$n $noun$plural" > function> } > $ count 1 package > 1 package > $ count 2 package > 2 packages > $ count 3 dependency > 3 dependencys > $ >=20 > (=F0=CF=D3=CC=C5=C4=CE=C5=C5 =CE=C5=D7=C5=D2=CE=CF -- =D0=C9=DB=C5=D4=D3= =D1 dependencies.) > =E5=D3=D4=D8 =C4=CC=D1 =DC=D4=CF=C7=CF =CB=C1=CB=C1=D1-=CE=C9=C2=D5=C4=D8= =D3=D4=C1=CE=C4=C1=D2=D4=CE=C1=D1 =D0=D2=CF=C7=D2=C1=CD=CD=C1? >=20 > PS: =D2=CF=C2=CF=D4! =F2=CF=C2=CF=D4 =C8=CF=DE=C5=D4 =D3=D4=C1=D4=D8 =C7= =D2=C1=CD=CF=D4=CE=D9=CD. :) =F7=CF=DA=CD=CF=D6=CE=CF, =DE=D4=CF =DE=D4=C5=CE=C9=C5 info '(gettext)Plural forms' =F0=CF=CD=CF=D6=C5=D4 =D2=CF=C2=CF=D4=D5. --=20 Best Regards! Alexey Voinov =20 voins@voins.program.ru voins@altlinux.ru --BXVAT5kNtrzKuDFl Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (GNU/Linux) iD8DBQFC4mM33FGE/YJu+jkRAiF7AJ0b7HycX4ZeNA+g7dtMzQv9V2AfzQCgqI5P WE+kZrWB+TAhqfJP68dV+EA= =G3Lg -----END PGP SIGNATURE----- --BXVAT5kNtrzKuDFl--