3 серпня 2005 о 21:44 +0200 Denis Barbier написав(-ла): > this had been requested by #234689, but I did not find a good way to > define this <ngettext> tag. <ngettext> tag will not help there. It is for translations that use po-files, and here I need to translate wml file.
But I found what I was looking for: <perl> my $n = <podebconf-total-strings/>; my $i = ($n%10==1 && $n%100!=11 ? 0 : $n%10>=2 && $n%10<=4 && ($n%100<10 || $n%100>=20) ? 1 : 2); print (("рядок", "рядки", "рядків")[$i]); </perl> -- Eugeniy Meshcheryakov Kyiv National Taras Shevchenko University Information and Computing Centre http://icc.univ.kiev.ua
signature.asc
Description: Digital signature