Fix message params

Added getCompactHeaderMessage() to EchoThanksPresentationModel
as done in EchoFlowThanksPresentationModel and fixed message
params. (Previously the message only supported $1 and $2, $4
had no effect.)

Change-Id: I98743751657607f61c9d461f4327ffca5a6a99b5
This commit is contained in:
matejsuchanek 2016-06-29 12:42:53 +02:00
parent b417af2476
commit 26a87e0a45
2 changed files with 7 additions and 1 deletions

View file

@ -23,6 +23,12 @@ class EchoThanksPresentationModel extends EchoEventPresentationModel {
}
}
public function getCompactHeaderMessage() {
$msg = parent::getCompactHeaderMessage();
$msg->params( $this->getViewingUserForGender() );
return $msg;
}
public function getBodyMessage() {
$comment = $this->getEditComment();
if ( $comment ) {

View file

@ -26,7 +26,7 @@
"notification-thanks-diff-link": "your edit",
"notification-thanks": "[[User:$1|$1]] {{GENDER:$1|thanked}} you for $2 on [[:$3]].",
"notification-header-edit-thank": "$1 {{GENDER:$2|thanked}} {{GENDER:$4|you}} for your edit on <strong>$3</strong>.",
"notification-compact-header-edit-thank": "$1 {{GENDER:$2|thanked}} {{GENDER:$4|you}}.",
"notification-compact-header-edit-thank": "$1 {{GENDER:$2|thanked}} {{GENDER:$3|you}}.",
"notification-bundle-header-edit-thank": "{{PLURAL:$1|One person|$1 people|100=99+ people}} thanked {{GENDER:$3|you}} for your edit on <strong>$2</strong>.",
"notification-thanks-email-subject": "$1 {{GENDER:$1|thanked}} you for your edit on {{SITENAME}}",
"notification-thanks-email-batch-body": "$1 {{GENDER:$1|thanked}} you for your edit on $2.",