summaryrefslogtreecommitdiff
path: root/languages/classes/LanguagePt_br.php
blob: 78965ae30f0fd73c17848a0faadb10d58024e2d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php
/** Brazilian Portugese (Portuguêsi do Brasil)
 *
 * @addtogroup Language
 *
 */

class LanguagePt_br extends Language {
	/**
	 * Use singular form for zero (see bug 7309)
	 */
	function convertPlural( $count, $forms ) {
		if ( !count($forms) ) { return ''; }
		$forms = $this->preConvertPlural( $forms, 2 );

		return ($count <= 1) ? $forms[0] : $forms[1];
	}
}