LanguageGa.php 820 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. /** Irish (Gaeilge)
  3. *
  4. * @ingroup Language
  5. */
  6. class LanguageGa extends Language {
  7. # Convert day names
  8. # Invoked with {{GRAMMAR:transformation|word}}
  9. function convertGrammar( $word, $case ) {
  10. global $wgGrammarForms;
  11. if ( isset($wgGrammarForms['ga'][$case][$word]) ) {
  12. return $wgGrammarForms['ga'][$case][$word];
  13. }
  14. switch ( $case ) {
  15. case 'ainmlae':
  16. switch ($word) {
  17. case 'an Domhnach':
  18. $word = 'Dé Domhnaigh'; break;
  19. case 'an Luan':
  20. $word = 'Dé Luain'; break;
  21. case 'an Mháirt':
  22. $word = 'Dé Mháirt'; break;
  23. case 'an Chéadaoin':
  24. $word = 'Dé Chéadaoin'; break;
  25. case 'an Déardaoin':
  26. $word = 'Déardaoin'; break;
  27. case 'an Aoine':
  28. $word = 'Dé hAoine'; break;
  29. case 'an Satharn':
  30. $word = 'Dé Sathairn'; break;
  31. }
  32. }
  33. return $word;
  34. }
  35. }