#10344 changed translate in popup conexion check in js

This commit is contained in:
Daniel Cebrian 2023-07-11 12:21:03 +02:00
parent 0a34d06603
commit c2e0a02f9d
2 changed files with 4 additions and 2 deletions

View File

@ -86,8 +86,8 @@ function showConnectionMessage(conn = true, msg = "") {
.closest(".ui-dialog-content") .closest(".ui-dialog-content")
.dialog("close"); .dialog("close");
} else { } else {
data.title = "Connection with server has been lost"; data.title = get_php_value("title_conexion_interval");
data.text = "Connection status: " + msg; data.text = get_php_value("status_conexion_interval") + msg;
infoMessage(data, "message_dialog_connection"); infoMessage(data, "message_dialog_connection");
} }

View File

@ -1490,6 +1490,8 @@ echo html_print_div(
// Connection lost alert. // Connection lost alert.
set_js_value('check_conexion_interval', $config['check_conexion_interval']); set_js_value('check_conexion_interval', $config['check_conexion_interval']);
set_js_value('title_conexion_interval', __('Connection with console has been lost'));
set_js_value('status_conexion_interval', __('Connection status: '));
ui_require_javascript_file('connection_check'); ui_require_javascript_file('connection_check');
set_js_value('absolute_homeurl', ui_get_full_url(false, false, false, false)); set_js_value('absolute_homeurl', ui_get_full_url(false, false, false, false));
$conn_title = __('Connection with console has been lost'); $conn_title = __('Connection with console has been lost');