LanguageCy.php 434 B

12345678910111213141516171819202122
  1. <?php
  2. /** Welsh (Cymraeg)
  3. *
  4. * @ingroup Language
  5. *
  6. * @author Niklas Laxström
  7. */
  8. class LanguageCy extends Language {
  9. function convertPlural( $count, $forms ) {
  10. if ( !count($forms) ) { return ''; }
  11. $forms = $this->preConvertPlural( $forms, 6 );
  12. $count = abs( $count );
  13. if ( $count >= 0 && $count <= 3 ) {
  14. return $forms[$count];
  15. } elseif ( $count == 6 ) {
  16. return $forms[4];
  17. } else {
  18. return $forms[5];
  19. }
  20. }
  21. }