3
Kind people who are called programmers helped me here.
This code needs to be replaced in the files Utility.php,
ajax_rating.php
$tense = 1 == $count ? _MD_PUBLISHER_VOTE_VOTE : _MD_PUBLISHER_VOTE_VOTES; //plural form votes/vote
with this one:
// Change to define Russian word endings
function getTense($n, $one, $two, $more)
{
$n = $n % 100;
if (10 < $n && 20 > $n) {
return $more;
}
$n = $n % 10;
if (1 == $n) {
return $one;
}
if (2 <= $n && 4 >= $n) {
return $two;
}
return $more;
}
$tense = getTense($count, _MD_PUBLISHER_VOTE_VOTE, _MD_PUBLISHER_VOTE_VOTES, _MD_PUBLISHER_VOTE_VOTESS); //plural form votes/vote
I've already tested it. Everything works correctly.
1 голо
с2,3,4 голо
са5-20 голос
ов21 - голос
22,23,24 голоса
25-30 голосов
and further
There are still exceptions. They are also taken into account in this code.