Localisation updates for core messages from Betawiki (2008-11-22 11:16 CET)
[lhc/web/wiklou.git] / languages / classes / LanguageHe.php
index 70de311..d8256cb 100644 (file)
@@ -1,13 +1,12 @@
 <?php
+
 /**
  * Hebrew (עברית)
  *
- * @package MediaWiki
- * @subpackage Language
+ * @ingroup Language
  *
  * @author Rotem Liss
  */
-
 class LanguageHe extends Language {
        /**
         * Convert grammar forms of words.
@@ -52,19 +51,22 @@ class LanguageHe extends Language {
         * @param integer the number of items
         * @param string the first form (singular)
         * @param string the second form (plural)
-        * @param string the third form (2 items, plural is used if not applicable and not specified)
+        * @param string the third form (2 items, plural is used if not applicable and not specified
+        * @param not used (for compatibility with ancestor)
+        * @param not used (for compatibility with ancestor)
         *
         * @return string of the suited form of word
         */
-       public function convertPlural( $count, $w1, $w2, $w3) {
+       function convertPlural( $count, $forms ) {
+               if ( !count($forms) ) { return ''; }
+               $forms = $this->preConvertPlural( $forms, 3 );
+
                if ( $count == '1' ) {
-                       return $w1;
-               } elseif ( $count == '2' && $w3 ) {
-                       return $w3;
+                       return $forms[0];
+               } elseif ( $count == '2' && isset($forms[2]) ) {
+                       return $forms[2];
                } else {
-                       return $w2;
+                       return $forms[1];
                }
        }
 }
-
-?>