From 0a34d066032c66ecd3c714fafea81f61e926b87c Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Tue, 11 Jul 2023 11:35:57 +0200 Subject: [PATCH 1/2] #10344 changed message in popup conexion check --- pandora_console/index.php | 4 ++-- pandora_console/operation/agentes/stat_win.php | 4 ++-- pandora_console/operation/gis_maps/public_console.php | 4 ++-- .../operation/visual_console/legacy_public_view.php | 4 ++-- pandora_console/operation/visual_console/public_view.php | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/pandora_console/index.php b/pandora_console/index.php index 96be49a6af..d3ad4799b6 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -1492,8 +1492,8 @@ echo html_print_div( set_js_value('check_conexion_interval', $config['check_conexion_interval']); ui_require_javascript_file('connection_check'); set_js_value('absolute_homeurl', ui_get_full_url(false, false, false, false)); -$conn_title = __('Connection with server has been lost'); -$conn_text = __('Connection to the server has been lost. Please check your internet connection or contact with administrator.'); +$conn_title = __('Connection with console has been lost'); +$conn_text = __('Connection to the console has been lost. Please check your internet connection.'); ui_print_message_dialog($conn_title, $conn_text, 'connection', '/images/fail@svg.svg'); if ($config['pure'] == 0) { diff --git a/pandora_console/operation/agentes/stat_win.php b/pandora_console/operation/agentes/stat_win.php index ac494046b5..a1b852bf0f 100644 --- a/pandora_console/operation/agentes/stat_win.php +++ b/pandora_console/operation/agentes/stat_win.php @@ -89,8 +89,8 @@ $label = db_get_value( ui_require_css_file('register', 'include/styles/', true); // Connection lost alert. -$conn_title = __('Connection with server has been lost'); -$conn_text = __('Connection to the server has been lost. Please check your internet connection or contact with administrator.'); +$conn_title = __('Connection with console has been lost'); +$conn_text = __('Connection to the console has been lost. Please check your internet connection.'); ui_require_javascript_file('connection_check'); set_js_value('absolute_homeurl', ui_get_full_url(false, false, false, false)); ui_print_message_dialog( diff --git a/pandora_console/operation/gis_maps/public_console.php b/pandora_console/operation/gis_maps/public_console.php index 0f6883984a..e674df41f3 100755 --- a/pandora_console/operation/gis_maps/public_console.php +++ b/pandora_console/operation/gis_maps/public_console.php @@ -274,8 +274,8 @@ if ($layers != false) { // Connection lost alert. ui_require_css_file('register', 'include/styles/', true); - $conn_title = __('Connection with server has been lost'); - $conn_text = __('Connection to the server has been lost. Please check your internet connection or contact with administrator.'); + $conn_title = __('Connection with console has been lost'); + $conn_text = __('Connection to the console has been lost. Please check your internet connection.'); ui_require_javascript_file('connection_check'); set_js_value('absolute_homeurl', ui_get_full_url(false, false, false, false)); ui_print_message_dialog($conn_title, $conn_text, 'connection', '/images/fail@svg.svg'); diff --git a/pandora_console/operation/visual_console/legacy_public_view.php b/pandora_console/operation/visual_console/legacy_public_view.php index 9157b612d9..04b8e508c1 100644 --- a/pandora_console/operation/visual_console/legacy_public_view.php +++ b/pandora_console/operation/visual_console/legacy_public_view.php @@ -54,8 +54,8 @@ echo ''."\n"; From c2e0a02f9d31bc2f8d6ec80b6fbedb086f43af5a Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Tue, 11 Jul 2023 12:21:03 +0200 Subject: [PATCH 2/2] #10344 changed translate in popup conexion check in js --- pandora_console/include/javascript/connection_check.js | 4 ++-- pandora_console/index.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/javascript/connection_check.js b/pandora_console/include/javascript/connection_check.js index f791a36232..d1fde9eae9 100644 --- a/pandora_console/include/javascript/connection_check.js +++ b/pandora_console/include/javascript/connection_check.js @@ -86,8 +86,8 @@ function showConnectionMessage(conn = true, msg = "") { .closest(".ui-dialog-content") .dialog("close"); } else { - data.title = "Connection with server has been lost"; - data.text = "Connection status: " + msg; + data.title = get_php_value("title_conexion_interval"); + data.text = get_php_value("status_conexion_interval") + msg; infoMessage(data, "message_dialog_connection"); } diff --git a/pandora_console/index.php b/pandora_console/index.php index d3ad4799b6..79abe421b1 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -1490,6 +1490,8 @@ echo html_print_div( // Connection lost alert. 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'); set_js_value('absolute_homeurl', ui_get_full_url(false, false, false, false)); $conn_title = __('Connection with console has been lost');