From 03f7d0ceef6e7588b7c35e4dfadf8e0f09d8e61d Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sun, 2 Jul 2006 03:57:52 +0000 Subject: [PATCH] * Fix regression in Polish genitive month forms --- RELEASE-NOTES | 1 + languages/LanguagePl.php | 9 +++++++++ 2 files changed, 10 insertions(+) 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 ); } -- 2.20.1