blob: 486f7a7ceb51fb9afde8921b0b8319c7dad96f32 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<?php
/** Welsh (Cymraeg)
*
* @ingroup Language
*
* @author Niklas Laxström
*/
class LanguageCy extends Language {
function convertPlural( $count, $forms ) {
if ( !count($forms) ) { return ''; }
$forms = $this->preConvertPlural( $forms, 6 );
$count = abs( $count );
if ( $count >= 0 && $count <= 3 ) {
return $forms[$count];
} elseif ( $count == 6 ) {
return $forms[4];
} else {
return $forms[5];
}
}
}
|