LanguageGv.php 462 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /** Manx (Gaelg)
  3. *
  4. * @ingroup Language
  5. *
  6. * @author Niklas Laxström
  7. */
  8. class LanguageGv extends Language {
  9. function convertPlural( $count, $forms ) {
  10. if ( !count($forms) ) { return ''; }
  11. $forms = $this->preConvertPlural( $forms, 4 );
  12. if ($count > 0 && ($count % 20) === 0 ) {
  13. return $forms[0];
  14. } else {
  15. switch ($count % 10) {
  16. case 1: return $forms[1];
  17. case 2: return $forms[2];
  18. default: return $forms[3];
  19. }
  20. }
  21. }
  22. }