Author: demicx
Description:
Please add plural form support for Bosnian language (LanguageBs.php) Code
below is copied from LanguageHr.php
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) {
$count = str_replace ('.', '', $count); if ($count > 10 && floor(($count % 100) / 10) == 1) { return $wordform3; } else { switch ($count % 10) { case 1: return $wordform1; case 2: case 3: case 4: return $wordform2; default: return $wordform3; } }
}
}
Test case:
for {{plural:X|članak|članka|članaka}}
1 članak
2 – 4 članka
5 – 20 članaka
21 članak
22 – 24 članka
25 – 30 članaka
Version: 1.7.x
Severity: normal