mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-30 18:45:07 +00:00
Merge "Link to the notifications FAQ from Preferences"
This commit is contained in:
commit
68248ccd7f
|
@ -25,6 +25,7 @@ $messages['en'] = array(
|
|||
'echo-pref-email-frequency-daily' => 'A daily summary of notifications',
|
||||
'echo-pref-email-frequency-weekly' => 'A weekly summary of notifications',
|
||||
'echo-pref-notify-show-link' => 'Show notifications in my toolbar',
|
||||
'echo-learn-more' => 'Learn more',
|
||||
|
||||
// Dismiss interface
|
||||
'echo-dismiss-button' => 'Dismiss',
|
||||
|
@ -221,6 +222,7 @@ See also:
|
|||
'echo-pref-email-frequency-daily' => 'Option for users who want to receive a daily digest of email notifications',
|
||||
'echo-pref-email-frequency-weekly' => 'Option for users who want to receive a weekly digest of email notifications',
|
||||
'echo-pref-notify-show-link' => "Label for a preference which enables the 'Notifications' link in the header and associated fly-out panel",
|
||||
'echo-learn-more' => 'Text for link to more information about a topic.',
|
||||
'echo-dismiss-button' => 'Text for the button that dismisses a notification type. Keep this short.
|
||||
{{Identical|Dismiss}}',
|
||||
'echo-dismiss-message' => 'Message asking the user if they want to turn off all notifications of a certain type. Parameters:
|
||||
|
|
|
@ -244,7 +244,8 @@ class EchoHooks {
|
|||
*/
|
||||
public static function getPreferences( $user, &$preferences ) {
|
||||
global $wgEchoDefaultNotificationTypes, $wgAuth, $wgEchoEnableEmailBatch,
|
||||
$wgEchoNotifiers, $wgEchoNotificationCategories, $wgEchoNotifications;
|
||||
$wgEchoNotifiers, $wgEchoNotificationCategories, $wgEchoNotifications,
|
||||
$wgEchoHelpPage;
|
||||
|
||||
// Show email frequency options
|
||||
$never = wfMessage( 'echo-pref-email-frequency-never' )->plain();
|
||||
|
@ -354,6 +355,11 @@ class EchoHooks {
|
|||
'rows' => $rows,
|
||||
'columns' => $columns,
|
||||
'remove-options' => $removeOptions,
|
||||
'help' => Html::rawElement(
|
||||
'a',
|
||||
array( 'href' => $wgEchoHelpPage ),
|
||||
wfMessage( 'echo-learn-more' )->escaped()
|
||||
),
|
||||
);
|
||||
|
||||
// If we're using Echo to handle user talk page post notifications,
|
||||
|
|
Loading…
Reference in a new issue