From: Brion Vibber Date: Sun, 2 Jul 2006 03:57:52 +0000 (+0000) Subject: * Fix regression in Polish genitive month forms X-Git-Tag: 1.31.0-rc.0~56481 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=03f7d0ceef6e7588b7c35e4dfadf8e0f09d8e61d;p=lhc%2Fweb%2Fwiklou.git * Fix regression in Polish genitive month forms --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 3383da7ef0..07321d2106 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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 == diff --git a/languages/LanguagePl.php b/languages/LanguagePl.php index 0462eee2e1..af5dd13ffc 100644 --- a/languages/LanguagePl.php +++ b/languages/LanguagePl.php @@ -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 ); }