english stripping
authorRiver Tarnell <river@users.mediawiki.org>
Fri, 11 May 2007 15:21:06 +0000 (15:21 +0000)
committerRiver Tarnell <river@users.mediawiki.org>
Fri, 11 May 2007 15:21:06 +0000 (15:21 +0000)
includes/UserMailer.php
languages/messages/MessagesEn.php

index 16453b0..2f29d07 100644 (file)
@@ -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);
index e81d3bd..642da27 100644 (file)
@@ -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.