r35237 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r35236‎ | r35237 | r35238 >
Date:17:40, 23 May 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Update plural for uk
Modified paths:
  • /trunk/phase3/languages/classes/LanguageUk.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguageUk.php
@@ -58,6 +58,10 @@
5959
6060 function convertPlural( $count, $forms ) {
6161 if ( !count($forms) ) { return ''; }
 62+
 63+ //if no number with word, then use $form[0] for singular and $form[1] for plural or zero
 64+ if( count($forms) === 2 ) return $count == 1 ? $forms[0] : $forms[1];
 65+
6266 $forms = $this->preConvertPlural( $forms, 3 );
6367
6468 if ($count > 10 && floor(($count % 100) / 10) == 1) {

Status & tagging log