r67049 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r67048‎ | r67049 | r67050 >
Date:18:58, 29 May 2010
Author:platonides
Status:ok
Tags:
Comment:
Bug 23707: Zero items is plural in brazilian portuguese, bug 7309 was wrong.
Modified paths:
  • /trunk/phase3/languages/classes/LanguagePt_br.php (deleted) (history)

Diff [purge]

Index: trunk/phase3/languages/classes/LanguagePt_br.php
@@ -1,17 +0,0 @@
2 -<?php
3 -
4 -/** Brazilian Portugese (Portuguêsi do Brasil)
5 - *
6 - * @ingroup Language
7 - */
8 -class LanguagePt_br extends Language {
9 - /**
10 - * Use singular form for zero (see bug 7309)
11 - */
12 - function convertPlural( $count, $forms ) {
13 - if ( !count($forms) ) { return ''; }
14 - $forms = $this->preConvertPlural( $forms, 2 );
15 -
16 - return ($count <= 1) ? $forms[0] : $forms[1];
17 - }
18 -}

Status & tagging log