Skip to content

Commit 5060953

Browse files
committed
Make lang keys consistent
1 parent 890e2a2 commit 5060953

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

event/listener.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ public function validate_pwa_options($event)
267267
// Don't allow empty values, if one icon is set, both must be set.
268268
if (empty($value))
269269
{
270-
$this->add_error($event, 'PWA_IMAGE_NOT_PROVIDED', $this->language->lang(strtoupper($event['config_name'])));
270+
$this->add_error($event, 'PWA_ICON_NOT_PROVIDED', $this->language->lang(strtoupper($event['config_name'])));
271271
return;
272272
}
273273

@@ -289,7 +289,7 @@ public function validate_pwa_options($event)
289289
}
290290
else
291291
{
292-
$this->add_error($event, 'PWA_IMAGE_INVALID', $value);
292+
$this->add_error($event, 'PWA_ICON_INVALID', $value);
293293
}
294294
break;
295295
}

language/en/webpushnotifications_common_acp.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
'PWA_ICON_LARGE_EXPLAIN' => 'File name of a 512px x 512px PNG image. This file must be uploaded to your board’s <samp>' . \phpbb\webpushnotifications\ext::PWA_ICON_DIR . '</samp> directory.',
4949
'PWA_ICON_SIZE_INVALID' => '“%s” does not have the correct image dimensions.',
5050
'PWA_ICON_MIME_INVALID' => '“%s” must be a PNG image file.',
51-
'PWA_IMAGE_INVALID' => '“%s” is not a valid image file or is missing from the expected location. Verify the file name and location are correct.',
52-
'PWA_IMAGE_NOT_PROVIDED' => '%s field must not be empty. All icon fields must contain an image.',
51+
'PWA_ICON_INVALID' => '“%s” is not a valid image file or is missing from the expected location. Verify the file name and location are correct.',
52+
'PWA_ICON_NOT_PROVIDED' => '%s field must not be empty. All icon fields must contain an image.',
5353
]);

language/ru/webpushnotifications_common_acp.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,6 @@
4848
'PWA_ICON_LARGE_EXPLAIN' => 'Имя файла изображения формата PNG размером 512 x 512 пикселей. Файл изображения должен быть загружен на сервер в папку <samp>' . \phpbb\webpushnotifications\ext::PWA_ICON_DIR . '</samp>.',
4949
'PWA_ICON_SIZE_INVALID' => 'Изображение «%s» имеет некорректные размеры.',
5050
'PWA_ICON_MIME_INVALID' => 'Файл изображения «%s» должен иметь формат PNG.',
51-
'PWA_IMAGE_INVALID' => 'Файл «%s» не яввляется файлом изображения.',
52-
'PWA_IMAGE_NOT_PROVIDED' => 'Настройка «%s» не может быть пустой. Необходимо задать все пути к значкам для мобильного устройства.',
51+
'PWA_ICON_INVALID' => 'Файл «%s» не яввляется файлом изображения.',
52+
'PWA_ICON_NOT_PROVIDED' => 'Настройка «%s» не может быть пустой. Необходимо задать все пути к значкам для мобильного устройства.',
5353
]);

0 commit comments

Comments
 (0)