LanguagePt_br.php 364 B

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