Remove messages and rebuild all messages files per r40076.
[mediawiki.git] / languages / classes / LanguageBe_tarask.php
blob358cb486026a1215109e0e54f85fadd8bc1619fc
1 <?php
2 /** Belarusian in Taraškievica orthography (Беларуская тарашкевіца)
4 * @ingroup Language
6 * @author Ævar Arnfjörð Bjarmason <avarab@gmail.com>
7 * @bug 1638, 2135
8 * @link http://be.wikipedia.org/wiki/Talk:LanguageBe.php
9 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
10 * @license http://www.gnu.org/copyleft/fdl.html GNU Free Documentation License
13 class LanguageBe_tarask extends Language {
14 /**
15 * Plural form transformations
17 * $wordform1 - singular form (for 1, 21, 31, 41...)
18 * $wordform2 - plural form (for 2, 3, 4, 22, 23, 24, 32, 33, 34...)
19 * $wordform3 - plural form (for 0, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 25, 26...)
22 function convertPlural( $count, $forms ) {
23 if ( !count($forms) ) { return ''; }
25 //if no number with word, then use $form[0] for singular and $form[1] for plural or zero
26 if( count($forms) === 2 ) return $count == 1 ? $forms[0] : $forms[1];
28 $forms = $this->preConvertPlural( $forms, 3 );
30 if ($count > 10 && floor(($count % 100) / 10) == 1) {
31 return $forms[2];
32 } else {
33 switch ($count % 10) {
34 case 1: return $forms[0];
35 case 2:
36 case 3:
37 case 4: return $forms[1];
38 default: return $forms[2];