diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2007-05-16 20:58:53 +0000 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2007-05-16 20:58:53 +0000 |
commit | cecb985bee3bdd252e1b8dc0bd500b37cd52be01 (patch) | |
tree | 17266aa237742640aabee7856f0202317a45d540 /languages/classes/LanguageAr.php | |
parent | 0bac06c301f2a83edb0236e4c2434da16848d549 (diff) |
Aktualisierung auf MediaWiki 1.10.0
Plugins angepasst und verbessert
kleine Korrekturen am Design
Diffstat (limited to 'languages/classes/LanguageAr.php')
-rw-r--r-- | languages/classes/LanguageAr.php | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/languages/classes/LanguageAr.php b/languages/classes/LanguageAr.php new file mode 100644 index 00000000..c8824814 --- /dev/null +++ b/languages/classes/LanguageAr.php @@ -0,0 +1,28 @@ +<?php +/** Arabic (العربية) + * + * @addtogroup Language + * + * @author Niklas Laxström + */ +class LanguageAr extends Language { + + function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) { + $forms = array($w1, $w2, $w3, $w4, $w5); + 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]; + } + +} + +?>
\ No newline at end of file |