* Update to Arabic (ar) from Mido
[lhc/web/wiklou.git] / languages / classes / LanguageAr.php
1 <?php
2 /** Arabic (العربية)
3 *
4 * @addtogroup Language
5 *
6 * @author Niklas Laxström
7 */
8 class LanguageAr extends Language {
9
10 function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) {
11 $forms = array($w1, $w2, $w3, $w4, $w5);
12 if ( $count == 1 ) {
13 $index = 0;
14 } elseif( $count == 2 ) {
15 $index = 1;
16 } elseif( $count < 11 && $count > 2 ) {
17 $index = 2;
18 } elseif( $count % 100 == 0) {
19 $index = 3;
20 } else {
21 $index = 4;
22 }
23 return $forms[$index];
24 }
25
26 }
27
28 ?>