LanguageCs.php 612 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /** Czech (čeština [subst.], český [adj.], česky [adv.])
  3. *
  4. * @ingroup Language
  5. */
  6. class LanguageCs extends Language {
  7. # Plural transformations
  8. # Invoked by putting
  9. # {{plural:count|form1|form2-4|form0,5+}} for two forms plurals
  10. # {{plural:count|form1|form0,2+}} for single form plurals
  11. # in a message
  12. function convertPlural( $count, $forms ) {
  13. if ( !count($forms) ) { return ''; }
  14. $forms = $this->preConvertPlural( $forms, 3 );
  15. switch ( $count ) {
  16. case 1:
  17. return $forms[0];
  18. case 2:
  19. case 3:
  20. case 4:
  21. return $forms[1];
  22. default:
  23. return $forms[2];
  24. }
  25. }
  26. }