Last modified: 2005-10-11 21:53:37 UTC
Please add plural form support for Belarusian language (LanguageBe.php)? Code below is copied from LanguageRu.php (plural forms are same for Russian and Belarusian). I don't sure that this all what I need to add. So please verify and add missing parts. function convertPlural( $count, $wordform1, $wordform2, $wordform3) { if ($count > 10 && floor(($count % 100) / 10) == 1) { return $wordform3; } else { switch ($count % 10) { case 1: return $wordform1; case 2: return $wordform2; case 3: return $wordform2; case 4: return $wordform2; default: return $wordform3; } } } Test case: for {{plural:X|артыкул|артыкула|артыкулаў}} 1 артыкул 2 – 4 артыкула 5 – 20 артыкулаў 21 артыкул 22 – 24 артыкула 25 – 30 артыкулаў and so on...