Skip to content

Commit 03d79c5

Browse files
committed
Remove redundant stuff in naming
Signed-off-by: Matt Friedman <maf675@gmail.com>
1 parent 1ebf7cb commit 03d79c5

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

acp/wpn_acp_module.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ public function main($id, $mode)
9898
public function display_settings()
9999
{
100100
$this->template->assign_vars([
101-
'S_WEBPUSH_ENABLE' => $this->config['wpn_webpush_enable'],
102-
'WEBPUSH_VAPID_PUBLIC' => $this->config['wpn_webpush_vapid_public'],
103-
'WEBPUSH_VAPID_PRIVATE' => $this->config['wpn_webpush_vapid_private'] ? self::MASKED_PRIVATE_KEY : '',
104-
'S_WPN_WEBPUSH_DROPDOWN_SUBSCRIBE' => $this->config['wpn_webpush_dropdown_subscribe'],
105-
'S_WEBPUSH_METHOD_ENABLED' => $this->config['wpn_webpush_method_enabled'],
106-
'U_ACTION' => $this->u_action,
101+
'S_WEBPUSH_ENABLE' => $this->config['wpn_webpush_enable'],
102+
'WEBPUSH_VAPID_PUBLIC' => $this->config['wpn_webpush_vapid_public'],
103+
'WEBPUSH_VAPID_PRIVATE' => $this->config['wpn_webpush_vapid_private'] ? self::MASKED_PRIVATE_KEY : '',
104+
'S_WEBPUSH_DROPDOWN_SUBSCRIBE' => $this->config['wpn_webpush_dropdown_subscribe'],
105+
'S_WEBPUSH_METHOD_ENABLED' => $this->config['wpn_webpush_method_enabled'],
106+
'U_ACTION' => $this->u_action,
107107
]);
108108
}
109109

adm/style/wpn_acp_settings.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ <h3>{{ lang('WARNING') }}</h3>
3030
<dd><label><input id="webpush_vapid_private" type="password" name="config[wpn_webpush_vapid_private]" size="25" maxlength="255" autocomplete="off" value="{{ WEBPUSH_VAPID_PRIVATE }}"></label></dd>
3131
</dl>
3232
<dl>
33-
<dt><label>{{ lang('WPN_WEBPUSH_DROPDOWN_SUBSCRIBE') ~ lang('COLON') }}</label><br><span>{{ lang('WPN_WEBPUSH_DROPDOWN_SUBSCRIBE_EXPLAIN') }}</span></dt>
34-
<dd><label><input type="radio" class="radio" name="config[wpn_webpush_dropdown_subscribe]" value="1" {% if S_WPN_WEBPUSH_DROPDOWN_SUBSCRIBE %}checked="checked"{% endif %}> {{ lang('YES') }}</label>
35-
<label><input type="radio" class="radio" name="config[wpn_webpush_dropdown_subscribe]" value="0"{% if not S_WPN_WEBPUSH_DROPDOWN_SUBSCRIBE %} checked="checked"{% endif %}> {{ lang('NO') }}</label>
33+
<dt><label>{{ lang('WEBPUSH_DROPDOWN_SUBSCRIBE') ~ lang('COLON') }}</label><br><span>{{ lang('WEBPUSH_DROPDOWN_SUBSCRIBE_EXPLAIN') }}</span></dt>
34+
<dd><label><input type="radio" class="radio" name="config[wpn_webpush_dropdown_subscribe]" value="1" {% if S_WEBPUSH_DROPDOWN_SUBSCRIBE %}checked="checked"{% endif %}> {{ lang('YES') }}</label>
35+
<label><input type="radio" class="radio" name="config[wpn_webpush_dropdown_subscribe]" value="0"{% if not S_WEBPUSH_DROPDOWN_SUBSCRIBE %} checked="checked"{% endif %}> {{ lang('NO') }}</label>
3636
</dl>
3737
<dl>
3838
<dt><label>{{ lang('WEBPUSH_METHOD_ENABLED') ~ lang('COLON') }}</label><br><span>{{ lang('WEBPUSH_METHOD_ENABLED_EXPLAIN') }}</span></dt>

language/en/webpushnotifications_module_acp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
'WEBPUSH_VAPID_PRIVATE_EXPLAIN' => 'The Voluntary Application Server Identification (VAPID) private key is used to generate authenticated push messages dispatched from your site. The VAPID private key <strong>must</strong> form a valid public-private key pair alongside the VAPID public key.<br><em><strong>Caution:</strong> Modifying the VAPID private key will automatically render all Web Push subscriptions invalid.</em>',
4949
'WEBPUSH_METHOD_ENABLED' => 'Enable user-based web push notifications by default',
5050
'WEBPUSH_METHOD_ENABLED_EXPLAIN'=> 'When this setting is enabled, users who subscribe and allow browser notifications will start receiving them automatically. They only need to visit the UCP Notification settings to disable any unwanted notifications.<br><br>If this setting is disabled, users will not receive any notifications, even if they have subscribed, until they visit the UCP Notification settings to enable the specific notifications they wish to receive.',
51-
'WPN_WEBPUSH_DROPDOWN_SUBSCRIBE' => 'Show “Subscribe” button in notification dropdown',
52-
'WPN_WEBPUSH_DROPDOWN_SUBSCRIBE_EXPLAIN'=> 'Enable or disable the “Subscribe” button in the Notification dropdown, allowing users to easily subscribe to push notifications from any page of the forum.',
51+
'WEBPUSH_DROPDOWN_SUBSCRIBE' => 'Show “Subscribe” button in notification dropdown',
52+
'WEBPUSH_DROPDOWN_SUBSCRIBE_EXPLAIN'=> 'Enable or disable the “Subscribe” button in the Notification dropdown, allowing users to easily subscribe to push notifications from any page of the forum.',
5353
]);

language/ru/webpushnotifications_module_acp.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
'WEBPUSH_VAPID_PRIVATE_EXPLAIN' => 'Приватный ключ идентификации сервера VAPID (Voluntary Application Server Identification) необходим для создания push—уведомлений, отправляемых с вашей конференции. Приватный ключ VAPID <strong>должен</strong> составлять корректную пару ключей вместе с публичным ключом VAPID.<br><em><strong>Внимание:</strong> изменение приватного ключа VAPID приведёт к автоматической отмене всех ранее сделанных подписок на push—уведомления.</em>',
4949
'WEBPUSH_METHOD_ENABLED' => 'Включить веб-уведомления для пользователей по умолчанию',
5050
'WEBPUSH_METHOD_ENABLED_EXPLAIN'=> 'Когда эта настройка включена, пользователи, подписавшиеся и разрешившие уведомления браузера, будут автоматически их получать. Им нужно будет лишь зайти в настройки уведомлений в ЛКП, чтобы отключить нежелательные уведомления.<br><br>Если эта настройка отключена, пользователи не будут получать уведомления, даже если они подписались, до тех пор, пока не зайдут в настройки уведомлений в ЛКП и не включат конкретные уведомления, которые они хотят получать.',
51-
'WPN_WEBPUSH_DROPDOWN_SUBSCRIBE' => 'Показать кнопку «Подписаться» в выпадающем меню уведомлений',
52-
'WPN_WEBPUSH_DROPDOWN_SUBSCRIBE_EXPLAIN'=> 'Включить или отключить кнопку «Подписаться» в выпадающем меню уведомлений, позволяя пользователям легко подписываться на push-уведомления с любой страницы форума.',
51+
'WEBPUSH_DROPDOWN_SUBSCRIBE' => 'Показать кнопку «Подписаться» в выпадающем меню уведомлений',
52+
'WEBPUSH_DROPDOWN_SUBSCRIBE_EXPLAIN'=> 'Включить или отключить кнопку «Подписаться» в выпадающем меню уведомлений, позволяя пользователям легко подписываться на push-уведомления с любой страницы форума.',
5353
]);

0 commit comments

Comments
 (0)