2 /** Latin (lingua Latina)
8 class LanguageLa
extends Language
{
10 * Convert from the nominative form of a noun to some other case
12 * Just used in a couple places for sitenames; special-case as necessary.
13 * Rules are far from complete.
17 function convertGrammar( $word, $case ) {
18 global $wgGrammarForms;
19 if ( isset($wgGrammarForms['la'][$case][$word]) ) {
20 return $wgGrammarForms['la'][$case][$word];
25 // 1st and 2nd declension singular only.
26 $in = array( '/a$/', '/u[ms]$/', '/tio$/' );
27 $out = array( 'ae', 'i', 'tionis' );
28 return preg_replace( $in, $out, $word );