From: Alexandre Emsenhuber Date: Sun, 25 Jan 2009 18:45:42 +0000 (+0000) Subject: Use wfMsgForContent() when needed so that IRC notifications are always in content... X-Git-Tag: 1.31.0-rc.0~43248 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=e89a1f8cf3b896b77ca303a0b5767393eef56e35;p=lhc%2Fweb%2Fwiklou.git Use wfMsgForContent() when needed so that IRC notifications are always in content language and not user language --- 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;