From 815a737a6937dbe1a60a5f54b73895d20fb40a4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Gonz=C3=A1lez?= Date: Fri, 10 Jun 2022 10:17:23 +0200 Subject: [PATCH] Change strings for Update Manager references to WARP update --- pandora_console/godmode/menu.php | 10 ++++---- pandora_console/godmode/um_client/index.php | 2 +- .../godmode/update_manager/update_manager.php | 24 +++++++++++------- .../update_manager/update_manager.setup.php | 25 ++++++++++--------- .../include/class/OrderInterpreter.class.php | 6 ++--- .../update_manager_client/views/register.php | 10 ++++---- 6 files changed, 42 insertions(+), 35 deletions(-) diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index aeecc25273..9d7719dd89 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -525,21 +525,21 @@ $menu_godmode['links']['sub'] = $sub; // Update Manager if (check_acl($config['id_user'], 0, 'PM') && $config['enable_update_manager']) { - $menu_godmode['messages']['text'] = __('Update manager'); + $menu_godmode['messages']['text'] = __('WARP Update'); $menu_godmode['messages']['id'] = 'god-um_messages'; $menu_godmode['messages']['sec2'] = ''; $sub = []; - $sub['godmode/update_manager/update_manager&tab=offline']['text'] = __('Update Manager offline'); + $sub['godmode/update_manager/update_manager&tab=offline']['text'] = __('Update offline'); $sub['godmode/update_manager/update_manager&tab=offline']['id'] = 'Offline'; - $sub['godmode/update_manager/update_manager&tab=online']['text'] = __('Update Manager online'); + $sub['godmode/update_manager/update_manager&tab=online']['text'] = __('Update online'); $sub['godmode/update_manager/update_manager&tab=online']['id'] = 'Online'; - $sub['godmode/update_manager/update_manager&tab=setup']['text'] = __('Update Manager options'); + $sub['godmode/update_manager/update_manager&tab=setup']['text'] = __('Options'); $sub['godmode/update_manager/update_manager&tab=setup']['id'] = 'Options'; - $sub['godmode/update_manager/update_manager&tab=history']['text'] = __('Update Manager journal'); + $sub['godmode/update_manager/update_manager&tab=history']['text'] = __('WARP journal'); $sub['godmode/update_manager/update_manager&tab=history']['id'] = 'Journal'; $menu_godmode['messages']['sub'] = $sub; diff --git a/pandora_console/godmode/um_client/index.php b/pandora_console/godmode/um_client/index.php index ebd13796c6..e74045b570 100644 --- a/pandora_console/godmode/um_client/index.php +++ b/pandora_console/godmode/um_client/index.php @@ -313,7 +313,7 @@ if (is_array($config) === true) { if ($mode === Manager::MODE_ONLINE && ($puid === null || $puid === 'OFFLINE') ) { - ui_print_error_message(__('Update manager online requires registration.')); + ui_print_error_message(__('Update online requires registration.')); } if ($mode === Manager::MODE_OFFLINE) { diff --git a/pandora_console/godmode/update_manager/update_manager.php b/pandora_console/godmode/update_manager/update_manager.php index da9eb8543d..e880e82a43 100644 --- a/pandora_console/godmode/update_manager/update_manager.php +++ b/pandora_console/godmode/update_manager/update_manager.php @@ -39,7 +39,7 @@ $buttons['setup'] = [ 'active' => ($tab == 'setup') ? true : false, 'text' => ''.html_print_image('images/gm_setup.png', true, ['title' => __('Options'), 'class' => 'invert_filter']).'', + ).'">'.html_print_image('images/gm_setup.png', true, ['title' => __('Setup'), 'class' => 'invert_filter']).'', ]; $buttons['history'] = [ @@ -53,42 +53,48 @@ $buttons['offline'] = [ 'active' => ($tab == 'offline') ? true : false, 'text' => ''.html_print_image('images/box.png', true, ['title' => __('Offline update manager'), 'class' => 'invert_filter']).'', + ).'ne">'.html_print_image('images/box.png', true, ['title' => __('Offline update'), 'class' => 'invert_filter']).'', ]; $buttons['online'] = [ 'active' => ($tab == 'online') ? true : false, 'text' => ''.html_print_image('images/op_gis.png', true, ['title' => __('Online update manager'), 'class' => 'invert_filter']).'', + ).'e">'.html_print_image('images/op_gis.png', true, ['title' => __('Online update'), 'class' => 'invert_filter']).'', ]; switch ($tab) { case 'history': - $title = __('Update manager » Journal'); + $title = __('Journal'); break; case 'setup': - $title = __('Update manager » Setup'); + $title = __('Setup'); break; case 'offline': - $title = __('Update manager » Offline'); + $title = __('Offline'); break; case 'online': default: - $title = __('Update manager » Online'); + $title = __('Online'); break; } -ui_print_page_header( +ui_print_standard_header( $title, 'images/gm_setup.png', false, '', true, - $buttons + $buttons, + [ + [ + 'link' => '', + 'label' => 'Warp Update', + ], + ] ); switch ($tab) { diff --git a/pandora_console/godmode/update_manager/update_manager.setup.php b/pandora_console/godmode/update_manager/update_manager.setup.php index e22c31031d..a671424bdc 100644 --- a/pandora_console/godmode/update_manager/update_manager.setup.php +++ b/pandora_console/godmode/update_manager/update_manager.setup.php @@ -268,17 +268,18 @@ $table->style[$i] = 'font-weight: bolder;width:250px'; $url_update_manager = update_manager_get_url(); -$table->data[$i][0] = __('URL update manager:'); +$table->data[$i][0] = __('WARP Update URL'); $table->data[$i++][1] = html_print_input_text( 'url_update_manager', $url_update_manager, __('URL update manager'), 80, 255, + true, true ); -$table->data[$i][0] = __('Use secured update manager:'); +$table->data[$i][0] = __('Use secured WARP Update'); $table->data[$i++][1] = html_print_input( [ 'type' => 'switch', @@ -287,7 +288,7 @@ $table->data[$i++][1] = html_print_input( ] ); -$table->data[$i][0] = __('Proxy server:'); +$table->data[$i][0] = __('Proxy server'); $table->data[$i++][1] = html_print_input_text( 'update_manager_proxy_server', $update_manager_proxy_server, @@ -297,7 +298,7 @@ $table->data[$i++][1] = html_print_input_text( true ); -$table->data[$i][0] = __('Proxy port:'); +$table->data[$i][0] = __('Proxy port'); $table->data[$i++][1] = html_print_input_text( 'update_manager_proxy_port', $update_manager_proxy_port, @@ -307,7 +308,7 @@ $table->data[$i++][1] = html_print_input_text( true ); -$table->data[$i][0] = __('Proxy user:'); +$table->data[$i][0] = __('Proxy user'); $table->data[$i++][1] = html_print_input_text( 'update_manager_proxy_user', $update_manager_proxy_user, @@ -317,7 +318,7 @@ $table->data[$i++][1] = html_print_input_text( true ); -$table->data[$i][0] = __('Proxy password:'); +$table->data[$i][0] = __('Proxy password'); $table->data[$i++][1] = html_print_input_password( 'update_manager_proxy_password', $update_manager_proxy_password, @@ -327,7 +328,7 @@ $table->data[$i++][1] = html_print_input_password( true ); -$table->data[$i][0] = __('Allow no-consecutive patches:'); +$table->data[$i][0] = __('Allow no-consecutive patches'); $table->data[$i++][1] = html_print_switch( [ 'name' => 'allow_offline_patches', @@ -336,7 +337,7 @@ $table->data[$i++][1] = html_print_switch( ] ); -$table->data[$i][0] = __('Limit to LTS updates:'); +$table->data[$i][0] = __('Limit to LTS updates'); $table->data[$i++][1] = html_print_switch( [ 'name' => 'lts_updates', @@ -346,11 +347,11 @@ $table->data[$i++][1] = html_print_switch( ); -$table->data[$i][0] = __('Registration ID:'); -$table->data[$i++][1] = ''.$config['pandora_uid'].''; +$table->data[$i][0] = __('Registration ID'); +$table->data[$i++][1] = ''.($config['pandora_uid'] ?? __('Not registred yet')).''; if (update_manager_verify_registration() === true && users_is_admin()) { - $table->data[$i][0] = __('Cancel registration:'); + $table->data[$i][0] = __('Cancel registration'); $table->data[$i][1] = '

https://pandorafms.com/privacy-policy/

@@ -109,7 +109,7 @@ $product_name = get_product_name(); ?>