blob: 1b9ae7bff50709a6588212df67addc4064dbe903 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
<?php
/** Arabic (العربية)
*
* @addtogroup Language
*
* @author Niklas Laxström
*/
class LanguageAr extends Language {
function convertPlural( $count, $forms ) {
if ( !count($forms) ) { return ''; }
$forms = $this->preConvertPlural( $forms, 5 );
if ( $count == 1 ) {
$index = 0;
} elseif( $count == 2 ) {
$index = 1;
} elseif( $count < 11 && $count > 2 ) {
$index = 2;
} elseif( $count % 100 == 0) {
$index = 3;
} else {
$index = 4;
}
return $forms[$index];
}
}
|