in the automated test report.
* (bug 4875) Define a div containing the shared image description
* (bug 4860) Expose Title->userCan() as Hooks
+* (bug 4828) Fix genitive month-name variable for cs, pl, uk
+
=== Caveats ===
function getMonthNameGen( $key ) {
#TODO: převést na return $this->convertGrammar( $this->getMonthName( $key ), '2sg' );
- global $wgMonthNamesGenEn;
- return wfMsg( $wgMonthNamesGenEn[$key-1] );
+ 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 ) {
}
function getMonthNameGen( $key ) {
- global $wgMonthNamesGenEn;
- return wfMsg( $wgMonthNamesGenEn[$key-1] );
+ 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 ) {
}
function getMonthNameGen( $key ) {
- global $wgMonthNamesGenEn;
- return wfMsg( $wgMonthNamesGenEn[$key-1] );
+ 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 getMessage( $key ) {