mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/17010] Unify naming of Web Push
PHPBB3-17010
This commit is contained in:
parent
bfc3a969ee
commit
d79e10e032
4 changed files with 14 additions and 14 deletions
|
@ -600,9 +600,9 @@ $lang = array_merge($lang, array(
|
|||
));
|
||||
|
||||
$lang = array_merge($lang, [
|
||||
'ACP_WEBPUSH_SETTINGS_EXPLAIN' => 'Here you can enable and control the use of Webpush for board notifications. Webpush is a simple protocol for the delivery of real-time events to user agents, more commonly known as push messages. It is supported by most modern browsers on desktop and mobile devices.',
|
||||
'WEBPUSH_ENABLE' => 'Enable Webpush',
|
||||
'WEBPUSH_ENABLE_EXPLAIN' => 'Allow receiving notifications via Webpush. It is required to enter or generate valid VAPID identification keys to be able to use Webpush.',
|
||||
'ACP_WEBPUSH_SETTINGS_EXPLAIN' => 'Here you can enable and control the use of Web Push for board notifications. Web Push is a simple protocol for the delivery of real-time events to user agents, more commonly known as push messages. It is supported by most modern browsers on desktop and mobile devices.',
|
||||
'WEBPUSH_ENABLE' => 'Enable Web Push',
|
||||
'WEBPUSH_ENABLE_EXPLAIN' => 'Allow receiving notifications via Web Push. It is required to enter or generate valid VAPID identification keys to be able to use Web Push.',
|
||||
'WEBPUSH_GENERATE_VAPID_KEYS' => 'Generate Identification keys',
|
||||
'WEBPUSH_VAPID_PUBLIC' => 'Server identification public key',
|
||||
'WEBPUSH_VAPID_PUBLIC_EXPLAIN' => 'The Voluntary Application Server Identification (VAPID) public key will be shared to authenticate push messages sent by your site.<br><em><strong>Warning:</strong> Changing the VAPID public key will automatically invalidate all Webpush subscriptions.</em>',
|
||||
|
|
|
@ -219,7 +219,7 @@ $lang = array_merge($lang, array(
|
|||
'ACP_VIEW_GLOBAL_MOD_PERMISSIONS' => 'View global moderation permissions',
|
||||
'ACP_VIEW_USER_PERMISSIONS' => 'View user-based permissions',
|
||||
|
||||
'ACP_WEBPUSH_SETTINGS' => 'Webpush settings',
|
||||
'ACP_WEBPUSH_SETTINGS' => 'Web Push settings',
|
||||
'ACP_WORDS' => 'Word censoring',
|
||||
|
||||
'ACTION' => 'Action',
|
||||
|
@ -593,7 +593,7 @@ $lang = array_merge($lang, array(
|
|||
'LOG_CONFIG_SETTINGS' => '<strong>Altered board settings</strong>',
|
||||
'LOG_CONFIG_SIGNATURE' => '<strong>Altered signature settings</strong>',
|
||||
'LOG_CONFIG_VISUAL' => '<strong>Altered anti-spambot settings</strong>',
|
||||
'LOG_CONFIG_WEBPUSH' => '<strong>Altered webpush settings</strong>',
|
||||
'LOG_CONFIG_WEBPUSH' => '<strong>Altered Web Push settings</strong>',
|
||||
|
||||
'LOG_APPROVE_TOPIC' => '<strong>Approved topic</strong><br />» %s',
|
||||
'LOG_BUMP_TOPIC' => '<strong>User bumped topic</strong><br />» %s',
|
||||
|
@ -814,8 +814,8 @@ $lang = array_merge($lang, array(
|
|||
),
|
||||
'LOG_WARNINGS_DELETED_ALL' => '<strong>Deleted all user warnings</strong><br />» %s',
|
||||
|
||||
'LOG_WEBPUSH_MESSAGE_FAIL' => '<strong>WebPush message could not be sent:</strong> %s',
|
||||
'LOG_WEBPUSH_SUBSCRIPTION_REMOVED' => '<strong>Removed WebPush subscription:</strong>» %s',
|
||||
'LOG_WEBPUSH_MESSAGE_FAIL' => '<strong>Web Push message could not be sent:</strong> %s',
|
||||
'LOG_WEBPUSH_SUBSCRIPTION_REMOVED' => '<strong>Removed Web Push subscription:</strong>» %s',
|
||||
|
||||
'LOG_WORD_ADD' => '<strong>Added word censor</strong><br />» %s',
|
||||
'LOG_WORD_DELETE' => '<strong>Deleted word censor</strong><br />» %s',
|
||||
|
|
|
@ -332,7 +332,7 @@ $lang = array_merge($lang, array(
|
|||
'NOTIFICATION_METHOD_BOARD' => 'Notifications',
|
||||
'NOTIFICATION_METHOD_EMAIL' => 'Email',
|
||||
'NOTIFICATION_METHOD_JABBER' => 'Jabber',
|
||||
'NOTIFICATION_METHOD_WEBPUSH' => 'Web push',
|
||||
'NOTIFICATION_METHOD_WEBPUSH' => 'Web Push',
|
||||
'NOTIFICATION_TYPE' => 'Notification type',
|
||||
'NOTIFICATION_TYPE_BOOKMARK' => 'Someone replies to a topic you have bookmarked',
|
||||
'NOTIFICATION_TYPE_GROUP_REQUEST' => 'Someone requests to join a group you lead',
|
||||
|
@ -356,7 +356,7 @@ $lang = array_merge($lang, array(
|
|||
'NOTIFY_METHOD_EXPLAIN' => 'Method for sending messages sent via this board.',
|
||||
'NOTIFY_METHOD_IM' => 'Jabber only',
|
||||
'NOTIFY_ON_PM' => 'Notify me on new private messages',
|
||||
'NOTIFY_WEBPUSH_ENABLE' => 'Enable receiving webpush notifications',
|
||||
'NOTIFY_WEBPUSH_ENABLE' => 'Enable receiving Web Push notifications',
|
||||
'NOTIFY_WEBPUSH_ENABLE_EXPLAIN' => 'Enable receiving browser-based push notifications.<br>The notifications can be turned off at any time in your browser settings, by unsubscribing, or by disabling the push notifications below.',
|
||||
'NOTIFY_WEBPUSH_SUBSCRIBE' => 'Subscribe',
|
||||
'NOTIFY_WEBPUSH_UNSUBSCRIBE' => 'Unsubscribe',
|
||||
|
|
|
@ -24,7 +24,7 @@ use phpbb\user;
|
|||
use phpbb\user_loader;
|
||||
|
||||
/**
|
||||
* Web push notification method class
|
||||
* Web Push notification method class
|
||||
* This class handles sending push messages for notifications
|
||||
*/
|
||||
|
||||
|
@ -42,14 +42,14 @@ class webpush extends messenger_base implements extended_method_interface
|
|||
/** @var user */
|
||||
protected $user;
|
||||
|
||||
/** @var string Notification web push table */
|
||||
/** @var string Notification Web Push table */
|
||||
protected $notification_webpush_table;
|
||||
|
||||
/** @var string Notification push subscriptions table */
|
||||
protected $push_subscriptions_table;
|
||||
|
||||
/**
|
||||
* Notification Method web push constructor
|
||||
* Notification Method Web Push constructor
|
||||
*
|
||||
* @param config $config
|
||||
* @param driver_interface $db
|
||||
|
@ -147,7 +147,7 @@ class webpush extends messenger_base implements extended_method_interface
|
|||
}
|
||||
|
||||
/**
|
||||
* Notify using web push
|
||||
* Notify using Web Push
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
|
@ -206,7 +206,7 @@ class webpush extends messenger_base implements extended_method_interface
|
|||
continue;
|
||||
}
|
||||
|
||||
// add actual web push data
|
||||
// Add actual Web Push data
|
||||
$data = [
|
||||
'item_id' => $notification->item_id,
|
||||
'type_id' => $notification->notification_type_id,
|
||||
|
|
Loading…
Add table
Reference in a new issue