mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Thanks
synced 2024-11-30 17:44:18 +00:00
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:
parent
b417af2476
commit
26a87e0a45
|
@ -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 ) {
|
||||
|
|
|
@ -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.",
|
||||
|
|
Loading…
Reference in a new issue