Fixed user scripts/styles and site scripts/styles - they were totally broken in r7277...
[mediawiki.git] / languages / classes / LanguageBe.php
blob0b147333431879c6ec8d4a1a91fcd8927258a61d
1 <?php
2 /** Belarusian normative (Беларуская мова)
4 * This is still the version from Be-x-old, only duplicated for consistency of
5 * plural and grammar functions. If there are errors please send a patch.
7 * @ingroup Language
9 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
10 * @link http://be.wikipedia.org/wiki/Talk:LanguageBe.php
11 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
12 * @license http://www.gnu.org/copyleft/fdl.html GNU Free Documentation License
15 class LanguageBe extends Language {
17 function convertPlural( $count, $forms ) {
18 if ( !count( $forms ) ) { return ''; }
19 // FIXME: CLDR defines 4 plural forms instead of 3
20 // http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html
21 $forms = $this->preConvertPlural( $forms, 3 );
23 if ( $count > 10 && floor( ( $count % 100 ) / 10 ) == 1 ) {
24 return $forms[2];
25 } else {
26 switch ( $count % 10 ) {
27 case 1: return $forms[0];
28 case 2:
29 case 3:
30 case 4: return $forms[1];
31 default: return $forms[2];