diff --git a/includes/logging/LogPage.php b/includes/logging/LogPage.php index 3891f3416cc..9bb7eb1d27d 100644 --- a/includes/logging/LogPage.php +++ b/includes/logging/LogPage.php @@ -417,7 +417,8 @@ class LogPage { # 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 ); } @@ -551,7 +552,8 @@ class LogPage { 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 ''; }