fix language
This commit is contained in:
parent
0a3205915f
commit
4bc47a8d85
@ -245,7 +245,7 @@
|
|||||||
if (selectedCustomerIds.length === 0) {
|
if (selectedCustomerIds.length === 0) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Error!',
|
title: 'Error!',
|
||||||
text: 'Please select at least one customer to send a message.',
|
text: "{Lang::T('Please select at least one customer to send a message.')}",
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
confirmButtonText: 'OK'
|
confirmButtonText: 'OK'
|
||||||
});
|
});
|
||||||
@ -264,7 +264,7 @@
|
|||||||
if (!message) {
|
if (!message) {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Error!',
|
title: 'Error!',
|
||||||
text: 'Please enter a message to send.',
|
text: "{Lang::T('Please enter a message to send.')}",
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
confirmButtonText: 'OK'
|
confirmButtonText: 'OK'
|
||||||
});
|
});
|
||||||
@ -272,7 +272,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Disable the button and show loading text
|
// Disable the button and show loading text
|
||||||
$(this).prop('disabled', true).text('Sending...');
|
$(this).prop('disabled', true).text('{Lang::T('Sending...')}');
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '?_route=message/send_bulk_selected',
|
url: '?_route=message/send_bulk_selected',
|
||||||
@ -288,14 +288,14 @@
|
|||||||
if (response.status === 'success') {
|
if (response.status === 'success') {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Success!',
|
title: 'Success!',
|
||||||
text: 'Message sent successfully.',
|
text: "{Lang::T('Message sent successfully.')}",
|
||||||
icon: 'success',
|
icon: 'success',
|
||||||
confirmButtonText: 'OK'
|
confirmButtonText: 'OK'
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Error!',
|
title: 'Error!',
|
||||||
text: 'Error sending message: ' + response.message,
|
text: "{Lang::T('Error sending message: ')}" + response.message,
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
confirmButtonText: 'OK'
|
confirmButtonText: 'OK'
|
||||||
});
|
});
|
||||||
@ -306,7 +306,7 @@
|
|||||||
error: function () {
|
error: function () {
|
||||||
Swal.fire({
|
Swal.fire({
|
||||||
title: 'Error!',
|
title: 'Error!',
|
||||||
text: 'Failed to send the message. Please try again.',
|
text: "{Lang::T('Failed to send the message. Please try again.')}",
|
||||||
icon: 'error',
|
icon: 'error',
|
||||||
confirmButtonText: 'OK'
|
confirmButtonText: 'OK'
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user