diff -ru newcodebase.orig/Language.php newcodebase/Language.php --- newcodebase.orig/Language.php 2003-02-05 13:44:28.000000000 +0100 +++ newcodebase/Language.php 2003-02-16 13:01:44.000000000 +0100 @@ -1110,6 +1110,13 @@ return $wgMonthNamesEn[$key-1]; } + /* by default we just return base form */ + function getMonthNameGen( $key ) + { + global $wgMonthNamesEn; + return $wgMonthNamesEn[$key-1]; + } + function getMonthAbbreviation( $key ) { global $wgMonthAbbreviationsEn; diff -ru newcodebase.orig/LanguagePl.php newcodebase/LanguagePl.php --- newcodebase.orig/LanguagePl.php 2003-02-13 08:23:40.000000000 +0100 +++ newcodebase/LanguagePl.php 2003-02-16 13:06:33.000000000 +0100 @@ -217,6 +217,12 @@ "grudzień" ); +/* private */ $wgMonthNamesGenPl = array( + "stycznia", "lutego", "marca", "kwietna", "maja", "czerwca", + "lipca", "sierpnia", "września", "października", "listopada", + "grudnia" +); + /* private */ $wgMonthAbbreviationsPl = array( "sty", "lut", "mar", "kwi", "maj", "cze", "lip", "sie", "wrz", "paź", "lis", "gru" @@ -1110,6 +1116,12 @@ return $wgMonthNamesPl[$key-1]; } + function getMonthNameGen( $key ) + { + global $wgMonthNamesGenPl; + return $wgMonthNamesGenPl[$key-1]; + } + function getMonthAbbreviation( $key ) { global $wgMonthAbbreviationsPl; @@ -1136,7 +1148,7 @@ (int)substr( $ts, 0, 4 ) ); return date( "YmdHis", $t ); } - + function date( $ts, $adj = false ) { if ( $adj ) { $ts = $this->userAdjust( $ts ); } diff -ru newcodebase.orig/OutputPage.php newcodebase/OutputPage.php --- newcodebase.orig/OutputPage.php 2003-02-12 21:02:56.000000000 +0100 +++ newcodebase/OutputPage.php 2003-02-16 13:00:35.000000000 +0100 @@ -1017,6 +1017,8 @@ $text = str_replace( "{{CURRENTMONTH}}", $v, $text ); $v = $wgLang->getMonthName( date( "n" ) ); $text = str_replace( "{{CURRENTMONTHNAME}}", $v, $text ); + $v = $wgLang->getMonthNameGen( date( "n" ) ); + $text = str_replace( "{{CURRENTMONTHNAMEGEN}}", $v, $text ); $v = date( "j" ); $text = str_replace( "{{CURRENTDAY}}", $v, $text ); $v = $wgLang->getWeekdayName( date( "w" )+1 );