summaryrefslogtreecommitdiff
path: root/languages/classes/LanguagePt_br.php
diff options
context:
space:
mode:
Diffstat (limited to 'languages/classes/LanguagePt_br.php')
-rw-r--r--languages/classes/LanguagePt_br.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/languages/classes/LanguagePt_br.php b/languages/classes/LanguagePt_br.php
index 31574ed8..78965ae3 100644
--- a/languages/classes/LanguagePt_br.php
+++ b/languages/classes/LanguagePt_br.php
@@ -9,8 +9,11 @@ class LanguagePt_br extends Language {
/**
* Use singular form for zero (see bug 7309)
*/
- function convertPlural( $count, $w1, $w2, $w3, $w4, $w5) {
- return $count <= '1' ? $w1 : $w2;
- }
+ function convertPlural( $count, $forms ) {
+ if ( !count($forms) ) { return ''; }
+ $forms = $this->preConvertPlural( $forms, 2 );
+
+ return ($count <= 1) ? $forms[0] : $forms[1];
+ }
}