* Update plural for uk
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Fri, 23 May 2008 17:40:06 +0000 (17:40 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Fri, 23 May 2008 17:40:06 +0000 (17:40 +0000)
languages/classes/LanguageUk.php

index d31a951..dbebb13 100644 (file)
@@ -58,6 +58,10 @@ class LanguageUk extends Language {
 
        function convertPlural( $count, $forms ) {
                if ( !count($forms) ) { return ''; }
+
+               //if no number with word, then use $form[0] for singular and $form[1] for plural or zero
+               if( count($forms) === 2 ) return $count == 1 ? $forms[0] : $forms[1];
+
                $forms = $this->preConvertPlural( $forms, 3 );
 
                if ($count > 10 && floor(($count % 100) / 10) == 1) {