LanguageHr.php 477 B

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