* Modified Language.php to support $wgGrammarForms. Languages which overwrite functio...
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 25 May 2006 14:21:45 +0000 (14:21 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Thu, 25 May 2006 14:21:45 +0000 (14:21 +0000)
RELEASE-NOTES
languages/Language.php

index aa63d54..b13efa7 100644 (file)
@@ -333,6 +333,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
   no longer necessary to write four separate functions just to add a
   custom log type.
 * (bug 6057) Count "licenses" as a message (and show it in Special:Allmessages)
+* Added $wgGrammarForms global
 
 == Compatibility ==
 
index f135dd4..eacf153 100644 (file)
@@ -1021,6 +1021,10 @@ class Language {
         * @return string
         */
        function convertGrammar( $word, $case ) {
+               global $wgGrammarForms;
+               if ( isset($wgGrammarForms[$case][$word]) ) {
+                       return $wgGrammarForms[$case][$word];
+               }
                return $word;
        }