Localisation updates from Betawiki
[lhc/web/wiklou.git] / 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) {