From 60ddc768805bbbf2985c21037d0699187cf70378 Mon Sep 17 00:00:00 2001 From: Stephane Bisson Date: Tue, 22 Dec 2015 14:51:45 -0500 Subject: [PATCH] Update page-linked notification text Bug: T121812 Change-Id: Ie875f105230c8364291a918b869b9c26dbdf1e83 --- Resources.php | 1 + i18n/en.json | 6 +++--- includes/formatters/PageLinkedPresentationModel.php | 2 +- modules/ooui/styles/mw.echo.ui.icons.less | 5 +++++ 4 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 modules/ooui/styles/mw.echo.ui.icons.less diff --git a/Resources.php b/Resources.php index 93ea71edd..a33c92982 100644 --- a/Resources.php +++ b/Resources.php @@ -44,6 +44,7 @@ $wgResourceModules += array( ), 'styles' => array( 'ooui/styles/mw.echo.ui.overlay.less', + 'ooui/styles/mw.echo.ui.icons.less', 'ooui/styles/mw.echo.ui.NotificationsWidget.less', 'ooui/styles/mw.echo.ui.NotificationItemWidget.less', 'ooui/styles/mw.echo.ui.NotificationGroupItemWidget.less', diff --git a/i18n/en.json b/i18n/en.json index 8c35c4016..8c4e6cb4c 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -70,9 +70,9 @@ "notification-header-edit-user-talk-with-section": "$1 {{GENDER:$2|left}} a message on {{GENDER:$3|your}} talk page in \"$4\".", "notification-body-edit-user-talk-with-section": "$1", "notification-page-linked": "[[:$2]] was {{GENDER:$1|linked}} from [[:$3]]. [[Special:WhatLinksHere/$2|See all links to this page]].", - "notification-header-page-linked": "$3 was {{GENDER:$2|linked}} from $4.", - "notification-bundle-header-page-linked": "$3 was {{GENDER:$2|linked}} from $4 and $5 other {{PLURAL:$6|page|pages}}.", - "notification-link-text-what-links-here": "See all links to this page", + "notification-header-page-linked": "A link was made from $4 to $3.", + "notification-bundle-header-page-linked": "$4 and $5 other {{PLURAL:$6|page|pages}} now link to $3.", + "notification-link-text-what-links-here": "All links to this page", "notification-add-comment2": "[[User:$1|$1]] {{GENDER:$1|commented}} on \"[[$3|$2]]\" on the \"$4\" talk page.", "notification-add-talkpage-topic2": "[[User:$1|$1]] {{GENDER:$1|posted}} a new topic \"$2\" on [[$3]].", "notification-add-talkpage-topic-yours2": "[[User:$1|$1]] {{GENDER:$1|sent}} you a message: \"[[$3#$2|$2]]\".", diff --git a/includes/formatters/PageLinkedPresentationModel.php b/includes/formatters/PageLinkedPresentationModel.php index b9b8d2d1b..a4b53ef8c 100644 --- a/includes/formatters/PageLinkedPresentationModel.php +++ b/includes/formatters/PageLinkedPresentationModel.php @@ -31,7 +31,7 @@ class EchoPageLinkedPresentationModel extends EchoEventPresentationModel { 'url' => SpecialPage::getTitleFor( 'Whatlinkshere', $this->event->getTitle()->getPrefixedText() )->getFullURL(), 'label' => $this->msg( 'notification-link-text-what-links-here' )->text(), 'description' => '', - 'icon' => false, + 'icon' => 'linked', 'prioritized' => true ); return array( $whatLinksHereLink ); diff --git a/modules/ooui/styles/mw.echo.ui.icons.less b/modules/ooui/styles/mw.echo.ui.icons.less new file mode 100644 index 000000000..761d63867 --- /dev/null +++ b/modules/ooui/styles/mw.echo.ui.icons.less @@ -0,0 +1,5 @@ +@import 'mediawiki.mixins'; + +.oo-ui-icon-linked { + .background-image('../../icons/link-blue.svg'); +}