Skip to content

Commit 4b4608e

Browse files
committed
fix: update TinyMCE error messages and adjust plugin API version
1 parent efde22e commit 4b4608e

File tree

9 files changed

+52
-10
lines changed

9 files changed

+52
-10
lines changed

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/Webkul/Admin/src/Resources/lang/ar/app.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,12 @@
415415
'warning' => 'تحذير',
416416
'info' => 'معلومات',
417417
],
418+
419+
'tiny-mce' => [
420+
'http-error' => 'خطأ في HTTP',
421+
'invalid-json' => 'استجابة JSON غير صالحة من الخادم.',
422+
'upload-failed' => 'فشل تحميل الملف. يرجى المحاولة مرة أخرى.',
423+
],
418424
],
419425

420426
'quotes' => [
@@ -2017,7 +2023,7 @@
20172023
'title' => 'حول الفرصة',
20182024
],
20192025

2020-
'quotes'=> [
2026+
'quotes' => [
20212027
'subject' => 'الموضوع',
20222028
'expired-at' => 'تنتهي في',
20232029
'sub-total' => 'المجموع الفرعي',

packages/Webkul/Admin/src/Resources/lang/en/app.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,12 @@
417417
'warning' => 'Warning',
418418
'info' => 'Info',
419419
],
420+
421+
'tiny-mce' => [
422+
'http-error' => 'HTTP Error',
423+
'invalid-json' => 'Invalid JSON response from the server.',
424+
'upload-failed' => 'File upload failed. Please try again.',
425+
],
420426
],
421427

422428
'quotes' => [

packages/Webkul/Admin/src/Resources/lang/es/app.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,12 @@
419419
'warning' => 'Advertencia',
420420
'info' => 'Información',
421421
],
422+
423+
'tiny-mce' => [
424+
'http-error' => 'Error HTTP',
425+
'invalid-json' => 'Respuesta JSON no válida del servidor.',
426+
'upload-failed' => 'Error al subir el archivo. Por favor, inténtelo de nuevo.',
427+
],
422428
],
423429

424430
'quotes' => [
@@ -2020,7 +2026,7 @@
20202026
'title' => 'Sobre el Lead',
20212027
],
20222028

2023-
'quotes'=> [
2029+
'quotes' => [
20242030
'subject' => 'Asunto',
20252031
'expired-at' => 'Expirado En',
20262032
'sub-total' => 'Subtotal',

packages/Webkul/Admin/src/Resources/lang/fa/app.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,12 @@
419419
'warning' => 'هشدار',
420420
'info' => 'اطلاعات',
421421
],
422+
423+
'tiny-mce' => [
424+
'http-error' => 'خطای HTTP',
425+
'invalid-json' => 'پاسخ JSON نامعتبر از سرور.',
426+
'upload-failed' => 'آپلود فایل ناموفق بود. لطفاً دوباره تلاش کنید.',
427+
],
422428
],
423429

424430
'quotes' => [
@@ -2021,7 +2027,7 @@
20212027
'title' => 'درباره سرنخ',
20222028
],
20232029

2024-
'quotes'=> [
2030+
'quotes' => [
20252031
'subject' => 'موضوع',
20262032
'expired-at' => 'تاریخ انقضا',
20272033
'sub-total' => 'جمع جزئی',

packages/Webkul/Admin/src/Resources/lang/pt_BR/app.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,12 @@
413413
'warning' => 'Aviso',
414414
'info' => 'Informação',
415415
],
416+
417+
'tiny-mce' => [
418+
'http-error' => 'Erro HTTP',
419+
'invalid-json' => 'Resposta JSON inválida do servidor.',
420+
'upload-failed' => 'Falha no upload do arquivo. Por favor, tente novamente.',
421+
],
416422
],
417423

418424
'quotes' => [
@@ -1906,7 +1912,7 @@
19061912
'title' => 'Sobre o Negócio',
19071913
],
19081914

1909-
'quotes'=> [
1915+
'quotes' => [
19101916
'subject' => 'Assunto',
19111917
'expired-at' => 'Expirado em',
19121918
'sub-total' => 'Subtotal',

packages/Webkul/Admin/src/Resources/lang/tr/app.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,12 @@
419419
'warning' => 'Uyarı',
420420
'info' => 'Bilgi',
421421
],
422+
423+
'tiny-mce' => [
424+
'http-error' => 'HTTP Hatası',
425+
'invalid-json' => 'Sunucudan geçersiz JSON yanıtı.',
426+
'upload-failed' => 'Dosya yüklemesi başarısız oldu. Lütfen tekrar deneyin.',
427+
],
422428
],
423429

424430
'quotes' => [

packages/Webkul/Admin/src/Resources/lang/vi/app.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,12 @@
416416
'warning' => 'Cảnh báo',
417417
'info' => 'Thông tin',
418418
],
419+
420+
'tiny-mce' => [
421+
'http-error' => 'Lỗi HTTP',
422+
'invalid-json' => 'Phản hồi JSON không hợp lệ từ máy chủ.',
423+
'upload-failed' => 'Tải tệp lên không thành công. Vui lòng thử lại.',
424+
],
419425
],
420426

421427
'quotes' => [
@@ -1914,7 +1920,7 @@
19141920
'title' => 'Về Khách Hàng Tiềm Năng',
19151921
],
19161922

1917-
'quotes'=> [
1923+
'quotes' => [
19181924
'subject' => 'Chủ Đề',
19191925
'expired-at' => 'Hết Hạn Vào',
19201926
'sub-total' => 'Tạm Tính',

packages/Webkul/Admin/src/Resources/views/components/tinymce/index.blade.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,31 +135,31 @@
135135
let json;
136136
137137
if (xhr.status === 403) {
138-
reject("@lang('admin::app.error.tinymce.http-error')", {
138+
reject("@lang('admin::app.components.tiny-mce.http-error')", {
139139
remove: true
140140
});
141141
142142
return;
143143
}
144144
145145
if (xhr.status < 200 || xhr.status >= 300) {
146-
reject("@lang('admin::app.error.tinymce.http-error')");
146+
reject("@lang('admin::app.components.tiny-mce.http-error')");
147147
148148
return;
149149
}
150150
151151
json = JSON.parse(xhr.responseText);
152152
153153
if (! json || typeof json.location != 'string') {
154-
reject("@lang('admin::app.error.tinymce.invalid-json')" + xhr.responseText);
154+
reject("@lang('admin::app.components.tiny-mce.invalid-json')" + xhr.responseText);
155155
156156
return;
157157
}
158158
159159
resolve(json.location);
160160
};
161161
162-
xhr.onerror = (()=>reject("@lang('admin::app.error.tinymce.upload-failed')"));
162+
xhr.onerror = (()=>reject("@lang('admin::app.components.tiny-mce.upload-failed')"));
163163
164164
formData = new FormData();
165165
formData.append('_token', config.csrfToken);

0 commit comments

Comments
 (0)