* Allow the "log in / create account" link in the toolbar to have different text...
[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, $forms ) {
11 if ( !count($forms) ) { return ''; }
12 $forms = $this->preConvertPlural( $forms, 5 );
13
14 if ( $count == 1 ) {
15 $index = 0;
16 } elseif( $count == 2 ) {
17 $index = 1;
18 } elseif( $count < 11 && $count > 2 ) {
19 $index = 2;
20 } elseif( $count % 100 == 0) {
21 $index = 3;
22 } else {
23 $index = 4;
24 }
25 return $forms[$index];
26 }
27
28 }
29