From e89a1f8cf3b896b77ca303a0b5767393eef56e35 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sun, 25 Jan 2009 18:45:42 +0000 Subject: [PATCH] Use wfMsgForContent() when needed so that IRC notifications are always in content language and not user language --- includes/LogPage.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/includes/LogPage.php b/includes/LogPage.php index a6afbd750d..bd3c97464d 100644 --- a/includes/LogPage.php +++ b/includes/LogPage.php @@ -213,11 +213,19 @@ class LogPage { } else if ( $type == 'protect' && count($params) == 3 ) { $details .= " {$params[1]}"; // restrictions and expiries if( $params[2] ) { - $details .= ' ['.wfMsg('protect-summary-cascade').']'; + if ( $skin ) { + $details .= ' ['.wfMsg('protect-summary-cascade').']'; + } else { + $details .= ' ['.wfMsgForContent('protect-summary-cascade').']'; + } } } else if ( $type == 'move' && count( $params ) == 3 ) { if( $params[2] ) { - $details .= ' [' . wfMsg( 'move-redirect-suppressed' ) . ']'; + if ( $skin ) { + $details .= ' [' . wfMsg( 'move-redirect-suppressed' ) . ']'; + } else { + $details .= ' [' . wfMsgForContent( 'move-redirect-suppressed' ) . ']'; + } } } $rv = wfMsgReal( $wgLogActions[$key], $params, true, !$skin ) . $details; -- 2.20.1