Translation Added

This commit is contained in:
devansh bawari 2021-09-23 12:36:00 +05:30
parent f98c427f6d
commit bdfb5da066
12 changed files with 71 additions and 4 deletions

View File

@ -1275,6 +1275,12 @@ return [
'title' => 'خطأ غير مصرح به',
'message' => 'ولم يطبق الطلب لأنه يفتقر إلى وثائق إثبات صحيحة للمورد المستهدف.'
],
'tinymce' => [
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' => [

View File

@ -1280,6 +1280,13 @@ return [
'title' => 'Unauthorisiert',
'message' => 'Die Anforderung wurde nicht angewendet, da keine gültigen Authentifizierungsdaten für die Zielressource vorhanden sind.',
],
'tinymce' =>
[
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' =>
[

View File

@ -1291,6 +1291,12 @@ return [
'title' => 'Unauthorized Error',
'message' => 'The request has not been applied because it lacks valid authentication credentials for the target resource.'
],
'tinymce' => [
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' => [

View File

@ -1284,6 +1284,12 @@ return [
'title' => 'No autorizado',
'message' => 'La solicitud no se ha aplicado porque carece de credenciales de autenticación válidas para el recurso de destino.'
],
'tinymce' => [
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' => [

View File

@ -1275,6 +1275,12 @@ return [
'title' => 'خطای غیرمجاز',
'message' => 'درخواست اعمال نشده است زیرا فاقد اعتبار تأیید معتبر برای منبع مورد نظر است.'
],
'tinymce' => [
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' => [

View File

@ -1298,6 +1298,12 @@ return [
'title' => 'Erreur non autorisée',
'message' => 'La demande n\'a pas été appliquée car il manque des informations d\'authentification valides pour la ressource cible.',
],
'tinymce' => [
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' => [

View File

@ -1278,6 +1278,12 @@ return [
'title' => 'Errore non autorizzato',
'message' => 'La richiesta non è stata applicata perchè manca di una valida autenticazione per accedere alla risorsa.'
],
'tinymce' => [
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' => [

View File

@ -1272,6 +1272,12 @@ return [
'title' => 'Ongeautoriseerde fout',
'message' => 'Het verzoek is niet toegepast omdat het geen geldige verificatiereferenties heeft voor de doelresource.'
],
'tinymce' => [
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' => [

View File

@ -1275,6 +1275,12 @@ return [
'title' => ' NIEAUTORYZOWANY DOSTĘP',
'message' => 'Żądanie nie zostało zastosowane, ponieważ brakuje prawidłowych poświadczeń uwierzytelnienia dla zasobu docelowego.'
],
'tinymce' => [
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' => [

View File

@ -1274,6 +1274,12 @@ return [
'title' => 'Erro não Autorizado',
'message' => 'A solicitação não foi aplicada porque não possui credenciais de autenticação válidas para o recurso de destino.'
],
'tinymce' => [
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' => [

View File

@ -1262,6 +1262,12 @@ return [
'title' => 'Yetkisiz Erişim',
'message' => 'Erişmek istediğiniz sayfa için özel yetki gerekiyor!'
],
'tinymce' => [
'http-error' => 'HTTP error.',
'invalid-json' => 'Invalid JSON.',
'upload-failed' => 'Image upload failed due to a XHR Transport error.'
],
],
'export' => [

View File

@ -57,19 +57,19 @@
let json;
if (xhr.status === 403) {
failure('HTTP Error: ' + xhr.status, { remove: true });
failure('{{ __('admin::app.error.tinymce.http-error') }}', { remove: true });
return;
}
if (xhr.status < 200 || xhr.status >= 300) {
failure('HTTP Error: ' + xhr.status);
failure('{{ __('admin::app.error.tinymce.http-error') }}');
return;
}
json = JSON.parse(xhr.responseText);
if (! json || typeof json.location != 'string') {
failure('Invalid JSON: ' + xhr.responseText);
failure('{{ __('admin::app.error.tinymce.invalid-json') }} ' + xhr.responseText);
return;
}
@ -77,7 +77,7 @@
};
xhr.onerror = function () {
failure('Image upload failed due to a XHR Transport error. Code: ' + xhr.status);
failure('{{ __('admin::app.error.tinymce.upload-failed') }}');
};
formData = new FormData();