summaryrefslogtreecommitdiff
path: root/languages/classes/LanguageAr.php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/classes/LanguageAr.php')
-rw-r--r--languages/classes/LanguageAr.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/languages/classes/LanguageAr.php b/languages/classes/LanguageAr.php
index 514ff028..1b9ae7bf 100644
--- a/languages/classes/LanguageAr.php
+++ b/languages/classes/LanguageAr.php
@@ -7,8 +7,10 @@
*/
class LanguageAr extends Language {
- function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) {
- $forms = array($w1, $w2, $w3, $w4, $w5);
+ function convertPlural( $count, $forms ) {
+ if ( !count($forms) ) { return ''; }
+ $forms = $this->preConvertPlural( $forms, 5 );
+
if ( $count == 1 ) {
$index = 0;
} elseif( $count == 2 ) {