Fix message and documentation mismatch

Bug: T170043
Change-Id: I86e5cdb753aeaae1f08a79430499d80ebe9c825d
This commit is contained in:
Max Semenik 2017-07-10 10:41:49 -07:00
parent 7e9559badc
commit 2d3dca1cc7
3 changed files with 3 additions and 3 deletions

View file

@ -14,7 +14,7 @@
"loginnotify-primary-link": "Help",
"notification-loginnotify-login-fail-email-subject": "{{PLURAL:$2|Failed attempt|Multiple failed attempts}} to log in to {{SITENAME}} as $1",
"notification-loginnotify-login-success-email-subject": "Login to {{SITENAME}} as $1 from a computer you have not recently used",
"notification-header-login-success": "Someone (probably you) recently logged in to your account from a new device. If this was you, then you can disregard this message. If it wasn't you, then it's recommended that you change your password, and check your account activity.",
"notification-header-login-success": "Someone (probably {{GENDER:$1|you}}) recently logged in to your account from a new device. If this was you, then you can disregard this message. If it wasn't you, then it's recommended that you change your password, and check your account activity.",
"notification-new-bundled-header-login-fail": "There {{PLURAL:$1|has been '''a failed attempt'''|have been '''$1 failed attempts'''}} to log in to your account from a new device since the last time you logged in. If it wasn't you, please make sure your account has a strong password.",
"notification-known-header-login-fail": "There have been {{PLURAL:$1|has been '''a failed attempt'''|have been '''$1 failed attempts'''}} to log in to your account since the last time you logged in. If it wasn't you, please make sure your account has a strong password.",
"notification-new-unbundled-header-login-fail": "There {{PLURAL:$1|has been '''a failed attempt'''|have been '''multiple failed attempts'''}} to log in to your account from a new device. Please make sure your account has a strong password."

View file

@ -14,7 +14,7 @@
"loginnotify-primary-link": "Label for link to a help page about the feature\n{{Identical|Help}}",
"notification-loginnotify-login-fail-email-subject": "Email subject line for email notice that there have been failed login attempts for the user's account. $1 is the user in question.",
"notification-loginnotify-login-success-email-subject": "Email subject line for email notice that someone has logged in to the user's account from a computer that has not previously been used. $1 is the user in question.",
"notification-header-login-success": "Text of notification for when someone successfully logs in as the current account from a computer that has not been previously used by that account. This is shown in the user's echo notifications, and is possibly emailed to the user.\n* $1 = Username for account, formatted for display\n* $2 = Username for account, unformatted for use in GENDER",
"notification-header-login-success": "Text of notification for when someone successfully logs in as the current account from a computer that has not been previously used by that account. This is shown in the user's echo notifications, and is possibly emailed to the user.\n* $1 = Username for account, for use in GENDER",
"notification-new-bundled-header-login-fail": "Message string shown for bundled notifications for login attempts from a new device",
"notification-known-header-login-fail": "Message string shown for known IP notifications",
"notification-new-unbundled-header-login-fail": "Message string shown for individual notifications for login attempts from a new device, when the bundle disperses"

View file

@ -71,7 +71,7 @@ class PresentationModel extends EchoEventPresentationModel {
}
break;
default:
$msg = $this->msg( 'notification-header-login-success' );
$msg = $this->msg( 'notification-header-login-success', $this->getUser()->getName() );
}
return $msg;
}