* Reworked convertPlural so that it accepts variable number of arguments nicely
[lhc/web/wiklou.git] / languages / classes / LanguageHy.php
index 236e8ba..cc3492b 100644 (file)
@@ -49,13 +49,11 @@ class LanguageHy extends Language {
                return $word;
        }
 
-       function convertPlural( $count, $wordform1, $wordform2, $w3, $w4, $w5) {
-               $count = str_replace (' ', '', $count);
-               if (abs($count) <= 1) {
-                       return $wordform1;
-               } else {
-                       return $wordform2;
-               }
+       function convertPlural( $count, $forms ) {
+               if ( !count($forms) ) { return ''; }
+               $forms = $this->preConvertPlural( $forms, 2 );
+
+               return (abs($count) <= 1) ? $forms[0] : $forms[1];
        }
 
        /*