LanguageSk.php 403 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * Slovak (Slovenčina)
  4. *
  5. * @ingroup Language
  6. */
  7. class LanguageSk extends Language {
  8. function convertPlural( $count, $forms ) {
  9. if ( !count($forms) ) { return ''; }
  10. $forms = $this->preConvertPlural( $forms, 3 );
  11. if ( $count == 1 ) {
  12. $index = 0;
  13. } elseif ( $count == 2 || $count == 3 || $count == 4 ) {
  14. $index = 1;
  15. } else {
  16. $index = 2;
  17. }
  18. return $forms[$index];
  19. }
  20. }