LanguageSr_ec.php 453 B

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