TopicSubscriptions: Rename 'actions' column and unframe button

Bug: T273342
Change-Id: Ifd18551e0d89e5c0d4cebd022afebb9a31e2619b
This commit is contained in:
Ed Sanders 2021-10-12 14:06:57 +01:00
parent 0935bb1271
commit 7f16b7a4c2
3 changed files with 4 additions and 3 deletions

View file

@ -97,9 +97,9 @@
"discussiontools-topicsubscription-notify-subscribed-title": "You have subscribed!",
"discussiontools-topicsubscription-notify-unsubscribed-body": "You will no longer receive notifications about new comments in this topic.",
"discussiontools-topicsubscription-notify-unsubscribed-title": "You have unsubscribed.",
"discussiontools-topicsubscription-pager-actions": "Actions",
"discussiontools-topicsubscription-pager-page": "Page",
"discussiontools-topicsubscription-pager-topic": "Topic",
"discussiontools-topicsubscription-pager-unsubscribe": "Unsubscribe",
"discussiontools-topicsubscription-pager-unsubscribe-button": "Unsubscribe",
"discussiontools-topicsubscription-special-intro": "Subscriptions allow you to follow a topic on talk pages. When someone replies to the topic, you will receive a notification.\n\nAdjust how and where you receive these notifications in [[Special:Preferences#mw-prefsection-echo|your preferences]].",
"discussiontools-topicsubscription-special-title": "Topic subscriptions",

View file

@ -106,9 +106,9 @@
"discussiontools-topicsubscription-notify-subscribed-title": "Title of notification shown when a user subscribes to a topic.",
"discussiontools-topicsubscription-notify-unsubscribed-body": "Body of notification shown when a user unsubscribes from a topic.",
"discussiontools-topicsubscription-notify-unsubscribed-title": "Title of notification shown when a user unsubscribes from a topic.",
"discussiontools-topicsubscription-pager-actions": "Used on [[mw:Special:TopicSubscriptions|Special:TopicSubscriptions]] as a table heading.",
"discussiontools-topicsubscription-pager-page": "Used on [[mw:Special:TopicSubscriptions|Special:TopicSubscriptions]] as a table heading.",
"discussiontools-topicsubscription-pager-topic": "Used on [[mw:Special:TopicSubscriptions|Special:TopicSubscriptions]] as a table heading.",
"discussiontools-topicsubscription-pager-unsubscribe": "Used on [[mw:Special:TopicSubscriptions|Special:TopicSubscriptions]] as a table heading.",
"discussiontools-topicsubscription-pager-unsubscribe-button": "Used on [[mw:Special:TopicSubscriptions|Special:TopicSubscriptions]] in the table, as a button label.",
"discussiontools-topicsubscription-special-intro": "Used on [[mw:Special:TopicSubscriptions|Special:TopicSubscriptions]] as an introduction.",
"discussiontools-topicsubscription-special-title": "Used on [[mw:Special:TopicSubscriptions|Special:TopicSubscriptions]] as the page title.",

View file

@ -60,7 +60,7 @@ class TopicSubscriptionsPager extends TablePager {
return [
'_topic' => $this->msg( 'discussiontools-topicsubscription-pager-topic' )->text(),
'_page' => $this->msg( 'discussiontools-topicsubscription-pager-page' )->text(),
'_unsubscribe' => $this->msg( 'discussiontools-topicsubscription-pager-unsubscribe' )->text(),
'_unsubscribe' => $this->msg( 'discussiontools-topicsubscription-pager-actions' )->text(),
];
}
@ -85,6 +85,7 @@ class TopicSubscriptionsPager extends TablePager {
$title = Title::makeTitleSafe( $row->sub_namespace, $row->sub_title );
return (string)new OOUI\ButtonWidget( [
'label' => $this->msg( 'discussiontools-topicsubscription-pager-unsubscribe-button' )->text(),
'framed' => false,
'flags' => [ 'destructive' ],
'href' => $title->getLinkURL( [
'action' => 'dtunsubscribe',