From: River Tarnell Date: Fri, 11 May 2007 15:21:06 +0000 (+0000) Subject: english stripping X-Git-Tag: 1.31.0-rc.0~52946 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=af16ff1358a6e0c78c7776c252ab6155b483ba69;p=lhc%2Fweb%2Fwiklou.git english stripping --- diff --git a/includes/UserMailer.php b/includes/UserMailer.php index 16453b0479..2f29d07655 100644 --- a/includes/UserMailer.php +++ b/includes/UserMailer.php @@ -434,9 +434,10 @@ class EmailNotification { } if( $wgUser->isIP( $name ) ) { + $utext = wfMsgForContent('enotif_anon_editor', $name); #real anon (user:xxx.xxx.xxx.xxx) - $subject = str_replace('$PAGEEDITOR', 'anonymous user '. $name, $subject); - $keys['$PAGEEDITOR'] = 'anonymous user ' . $name; + $subject = str_replace('$PAGEEDITOR', $utext, $subject); + $keys['$PAGEEDITOR'] = $utext; $keys['$PAGEEDITOR_EMAIL'] = wfMsgForContent( 'noemailtitle' ); } else { $subject = str_replace('$PAGEEDITOR', $name, $subject); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index e81d3bd846..642da2713c 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -1755,7 +1755,9 @@ at the bottom of the screen (deleting a content page also deletes the accompanyi 'enotif_subject' => '{{SITENAME}} page $PAGETITLE has been $CHANGEDORCREATED by $PAGEEDITOR', 'enotif_lastvisited' => 'See $1 for all changes since your last visit.', 'enotif_lastdiff' => 'See $1 to view this change.', +'enotif_anon_editor' => 'anonymous user $1', 'enotif_body' => 'Dear $WATCHINGUSERNAME, + The {{SITENAME}} page $PAGETITLE has been $CHANGEDORCREATED on $PAGEEDITDATE by $PAGEEDITOR, see $PAGETITLE_URL for the current version.