https://bugzilla.wikimedia.org/show_bug.cgi?id=56634
--- Comment #32 from PiRSquared17 <[email protected]> --- (In reply to comment #17) > Created attachment 13959 [details] > proposed languages/classes/LanguageAng.php file > > Attached proposed languages/classes/LanguageAng.php file --- languages/classes/LanguageAng.php 1969-12-31 19:00:00.000000000 -0500 +++ languages/classes/LanguageAng.php 2013-12-04 10:19:10.000000000 -0500 @@ -0,0 +1,27 @@ +<?php + +/** Old English (Ænglisc) + * + * @ingroup Language + */ +class LanguageAng extends Language { + # Convert from the nominative form of a noun to some other case + # Invoked with {{GRAMMAR:case|word}} + /** + * Cases: nemniendlīc (nom), wrēgendlīc (acc), forgifendlīc (dat), geāgniendlīc (gen), tōllīc (ins) + * + * @param $word string + * @param $case string + * + * @return string + */ + function convertGrammar( $word, $case ) { + global $wgGrammarForms; + if ( isset( $wgGrammarForms['ang'][$case][$word] ) ) { + return $wgGrammarForms['ang'][$case][$word]; + } + + return $word; # this will return the original value for all words without set grammar forms + } + +} Is this good? -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
