LanguageHu.php 459 B

123456789101112131415161718192021222324
  1. <?php
  2. /** Hungarian localisation for MediaWiki
  3. *
  4. * @ingroup Language
  5. */
  6. class LanguageHu extends Language {
  7. function convertGrammar( $word, $case ) {
  8. global $wgGrammarForms;
  9. if ( isset($wgGrammarForms[$this->getCode()][$case][$word]) ) {
  10. return $wgGrammarForms[$this->getCode()][$case][$word];
  11. }
  12. switch ( $case ) {
  13. case 'rol':
  14. return $word . 'ról';
  15. case 'ba':
  16. return $word . 'ba';
  17. case 'k':
  18. return $word . 'k';
  19. }
  20. }
  21. }