Skip to content

Commit a2c23d7

Browse files
authored
chore: remove duplicate translation strings (alexjustesen#2470)
1 parent 9554a18 commit a2c23d7

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed

app/Filament/Pages/Settings/Notification.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ public function form(Schema $schema): Schema
8383
->columns(1)
8484
->schema([
8585
Checkbox::make('database_on_speedtest_run')
86-
->label(__('settings/notifications.database_on_speedtest_run')),
86+
->label(__('settings/notifications.notify_on_every_speedtest_run')),
8787

8888
Checkbox::make('database_on_threshold_failure')
89-
->label(__('settings/notifications.database_on_threshold_failure')),
89+
->label(__('settings/notifications.notify_on_threshold_failures')),
9090
]),
9191

9292
Actions::make([
@@ -115,10 +115,10 @@ public function form(Schema $schema): Schema
115115
->columns(1)
116116
->schema([
117117
Checkbox::make('mail_on_speedtest_run')
118-
->label(__('settings/notifications.mail_on_speedtest_run')),
118+
->label(__('settings/notifications.notify_on_every_speedtest_run')),
119119

120120
Checkbox::make('mail_on_threshold_failure')
121-
->label(__('settings/notifications.mail_on_threshold_failure')),
121+
->label(__('settings/notifications.notify_on_threshold_failures')),
122122
]),
123123

124124
Repeater::make('mail_recipients')
@@ -173,10 +173,10 @@ public function form(Schema $schema): Schema
173173
->columns(1)
174174
->schema([
175175
Checkbox::make('webhook_on_speedtest_run')
176-
->label(__('settings/notifications.webhook_on_speedtest_run')),
176+
->label(__('settings/notifications.notify_on_every_speedtest_run')),
177177

178178
Checkbox::make('webhook_on_threshold_failure')
179-
->label(__('settings/notifications.webhook_on_threshold_failure')),
179+
->label(__('settings/notifications.notify_on_threshold_failures')),
180180
]),
181181

182182
Repeater::make('webhook_urls')

lang/en/settings/notifications.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,22 @@
77
// Database notifications
88
'database' => 'Database',
99
'database_description' => 'Notifications sent to this channel will show up under the 🔔 icon in the header.',
10-
'database_on_speedtest_run' => 'Notify on every speedtest run',
11-
'database_on_threshold_failure' => 'Notify on threshold failures',
1210
'test_database_channel' => 'Test database channel',
1311

1412
// Mail notifications
1513
'mail' => 'Mail',
1614
'recipients' => 'Recipients',
17-
'mail_on_speedtest_run' => 'Notify on every speedtest run',
18-
'mail_on_threshold_failure' => 'Notify on threshold failures',
1915
'test_mail_channel' => 'Test mail channel',
2016

2117
// Webhook
2218
'webhook' => 'Webhook',
2319
'webhooks' => 'Webhooks',
24-
'webhook_on_speedtest_run' => 'Notify on every speedtest run',
25-
'webhook_on_threshold_failure' => 'Notify on threshold failures',
2620
'test_webhook_channel' => 'Test webhook channel',
2721
'webhook_hint_description' => 'These are generic webhooks. For payload examples and implementation details, view the documentation.',
2822

2923
// Common notification messages
30-
'notify_on_every_speedtest_run' => 'Notify on every speedtest run',
31-
'notify_on_threshold_failures' => 'Notify on threshold failures',
24+
'notify_on_every_speedtest_run' => 'Notify on every scheduled speedtest run',
25+
'notify_on_threshold_failures' => 'Notify on threshold failures for scheduled speedtests',
3226

3327
// Test notification messages
3428
'test_notifications' => [

0 commit comments

Comments
 (0)