RU translation diaspora addon THX Stanislav N

pull/605/head
Tobias Diekershoff 2018-05-25 10:53:37 +02:00
parent e9732c3992
commit d111e17f84
1 changed files with 1 additions and 0 deletions

View File

@ -2,6 +2,7 @@
if(! function_exists("string_plural_select_ru")) {
function string_plural_select_ru($n){
$n = intval($n);
return ($n%10==1 && $n%100!=11 ? 0 : $n%10>=2 && $n%10<=4 && ($n%100<12 || $n%100>14) ? 1 : $n%10==0 || ($n%10>=5 && $n%10<=9) || ($n%100>=11 && $n%100<=14)? 2 : 3);;
}}
;