Use Doxygen @addtogroup instead of phpdoc @package && @subpackage
[lhc/web/wiklou.git] / languages / classes / LanguageLa.php
1 <?php
2 /** Latin (lingua Latina)
3 *
4 * @addtogroup Language
5 */
6
7 class LanguageLa extends Language {
8 /**
9 * Convert from the nominative form of a noun to some other case
10 *
11 * Just used in a couple places for sitenames; special-case as necessary.
12 * Rules are far from complete.
13 *
14 * Cases: genitive
15 */
16 function convertGrammar( $word, $case ) {
17 global $wgGrammarForms;
18 if ( isset($wgGrammarForms['la'][$case][$word]) ) {
19 return $wgGrammarForms['la'][$case][$word];
20 }
21
22 switch ( $case ) {
23 case 'genitive':
24 // 1st and 2nd declension singular only.
25 $in = array( '/a$/', '/u[ms]$/', '/tio$/' );
26 $out = array( 'ae', 'i', 'tionis' );
27 return preg_replace( $in, $out, $word );
28 default:
29 return $word;
30 }
31 }
32
33 }
34
35
36 ?>