# Use the language name for log titles, rather than Log/X
if( $name == 'Log' ) {
$titleLink = Linker::link( $title, LogPage::logName( $par ) );
- $titleLink = wfMessage( 'parentheses' )->rawParams( $titleLink )->escaped();
+ $titleLink = wfMessage( 'parentheses' )->inLanguage( $lang )
+ ->rawParams( $titleLink )->escaped();
} else {
$titleLink = Linker::link( $title );
}
for( $i = 0; $i < count( $flags ); $i++ ) {
$flags[$i] = self::formatBlockFlag( $flags[$i], $lang );
}
- return wfMessage( 'parentheses' )->rawParams( $lang->commaList( $flags ) )->escaped();
+ return wfMessage( 'parentheses' )->inLanguage( $lang )
+ ->rawParams( $lang->commaList( $flags ) )->escaped();
} else {
return '';
}