* Fix regression in Polish genitive month forms
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 2 Jul 2006 03:57:52 +0000 (03:57 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 2 Jul 2006 03:57:52 +0000 (03:57 +0000)
RELEASE-NOTES
languages/LanguagePl.php

index 3383da7..07321d2 100644 (file)
@@ -623,6 +623,7 @@ Some default configuration options have changed:
 * (bug 502) Avoid silly tabs on bad title by using virtual special page
 * (bug 6511) Add diff links to old revision navigation bar
 * (bug 6511) Replace 'oldrevisionnavigation' message with 'old-revision-navigation'
+* Fix regression in Polish genitive month forms
 
 
 == Compatibility ==
index 0462eee..af5dd13 100644 (file)
@@ -100,6 +100,15 @@ class LanguagePl extends LanguageUtf8 {
                return $this->mMessagesPl;
        }
 
+       function getMonthNameGen( $key ) {
+               global $wgMonthNamesGenEn, $wgContLang;
+               // see who called us and use the correct message function
+               if( get_class( $wgContLang->getLangObj() ) == get_class( $this ) )
+                       return wfMsgForContent( $wgMonthNamesGenEn[$key-1] );
+               else
+                       return wfMsg( $wgMonthNamesGenEn[$key-1] );
+       }
+
        function formatMonth( $month, $format ) {
                return $this->getMonthAbbreviation( $month );
        }