Revision: 46211
Author: ialex
Date: 2009-01-25 18:45:42 +0000 (Sun, 25 Jan 2009)
Log Message:
-----------
Use wfMsgForContent() when needed so that IRC notifications are always in
content language and not user language
Modified Paths:
--------------
trunk/phase3/includes/LogPage.php
Modified: trunk/phase3/includes/LogPage.php
===================================================================
--- trunk/phase3/includes/LogPage.php 2009-01-25 18:43:52 UTC (rev 46210)
+++ trunk/phase3/includes/LogPage.php 2009-01-25 18:45:42 UTC (rev 46211)
@@ -213,11 +213,19 @@
} 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;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs