mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
fix errors in translations pandora_enterprise#13668
This commit is contained in:
parent
e28dc6fb35
commit
d9cd306ab8
@ -162,12 +162,12 @@ function extension_db_status_execute_checks($db_user, $db_password, $db_host, $d
|
||||
$db_name = $db_name[0];
|
||||
|
||||
if (!$db_host) {
|
||||
ui_print_error_message(__('A host must be provided'));
|
||||
ui_print_error_message(__('Host must be provided'));
|
||||
return;
|
||||
}
|
||||
|
||||
if (!$db_name) {
|
||||
ui_print_error_message(__('A DB name must be provided'));
|
||||
ui_print_error_message(__('DB name must be provided'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -48,7 +48,7 @@ if (is_ajax()) {
|
||||
echo "<ul class='tooltip_counters'><h3>".__('Counters Module').'</h3>';
|
||||
echo "<li><div style='background-color: ".COL_ALERTFIRED.";'></div>".__('Alerts_Fired').': '.$send_tooltip['alerts_module_count'].'</li>';
|
||||
echo "<li><div style='background-color: ".COL_CRITICAL.";'></div>".__('Critical').': '.$send_tooltip['critical_module_count'].'</li>';
|
||||
echo "<li><div style='background-color: ".COL_WARNING.";'></div>".__('warning').': '.$send_tooltip['warning_module_count'].'</li>';
|
||||
echo "<li><div style='background-color: ".COL_WARNING.";'></div>".__('Warning').': '.$send_tooltip['warning_module_count'].'</li>';
|
||||
echo "<li><div style='background-color: ".COL_UNKNOWN.";'></div>".__('Unknown').': '.$send_tooltip['unknown_module_count'].'</li>';
|
||||
echo "<li><div style='background-color: ".COL_NORMAL.";'></div>".__('OK').': '.$send_tooltip['normal_module_count'].'</li>';
|
||||
echo "<li><div style='background-color: ".COL_MAINTENANCE.";'></div>".__('Not_init').': '.$send_tooltip['notInit_module_count'].'</li></ul>';
|
||||
|
@ -27,12 +27,12 @@ $button = '';
|
||||
if (check_acl($config['id_user'], 0, 'RW') || check_acl($config['id_user'], 0, 'RM')) {
|
||||
$url_new = 'index.php?sec=reporting&sec2=godmode/reporting/graph_builder';
|
||||
$button = '<form action="'.$url_new.'" method="post">
|
||||
<input type="submit" class="button_task button_task_mini mrgn_0px_imp" value="'.__('Create custom graph').'" />
|
||||
<input type="submit" class="button_task button_task_mini mrgn_0px_imp" value="'.__('Create custom graphs').'" />
|
||||
</form>';
|
||||
}
|
||||
|
||||
echo ui_print_empty_view(
|
||||
__('Create custom graph'),
|
||||
__('Create custom graphs'),
|
||||
$msg,
|
||||
'custom-graph.svg',
|
||||
$button
|
||||
|
@ -129,7 +129,7 @@ $table->data[2][0] = html_print_label_input_block(
|
||||
);
|
||||
|
||||
$table->data[2][1] = html_print_label_input_block(
|
||||
__('Ignore new GIS data: '),
|
||||
__('Ignore new GIS data').': ',
|
||||
'<div class="flex mrgn_top_5px">'.__('Yes').' '.html_print_radio_button_extended(
|
||||
'update_gis_data',
|
||||
0,
|
||||
|
@ -1388,7 +1388,7 @@ ui_require_jquery_file('bgiframe');
|
||||
|
||||
confirmDialog({
|
||||
title: "<?php echo __('Delete agent'); ?>",
|
||||
message: msg_cluster + "<?php echo __('This action is not reversible. Are you sure'); ?>",
|
||||
message: msg_cluster + "<?php echo __('This action is not reversible. Are you sure?'); ?>",
|
||||
onAccept: function() {
|
||||
window.location.assign('index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&borrar_agente='+$idAgente);
|
||||
}
|
||||
|
@ -649,7 +649,7 @@ if ($disabledBecauseInPolicy) {
|
||||
);
|
||||
}
|
||||
|
||||
$table_simple->data['caption_ignore_unknown'][0] = __('Ignore unknown').ui_print_help_tip(_('This disables the module\'s state calculation to unknown, so it will never transition to unknown. The state it reflects is the last known status.'), true);
|
||||
$table_simple->data['caption_ignore_unknown'][0] = __('Ignore unknown').ui_print_help_tip(__('This disables the module\'s state calculation to unknown, so it will never transition to unknown. The state it reflects is the last known status.'), true);
|
||||
$table_simple->data['ignore_unknown'][0] = html_print_checkbox_switch(
|
||||
'ignore_unknown',
|
||||
1,
|
||||
|
@ -300,7 +300,7 @@ $(document).ready (function () {
|
||||
},
|
||||
messages: {
|
||||
id_agent_module: { valueNotEquals: "<?php echo __('Please select an item'); ?>!"},
|
||||
template: { valueNotEquals: "<?php echo __('Please select a templete'); ?>!"},
|
||||
template: { valueNotEquals: "<?php echo __('Please select a template'); ?>!"},
|
||||
id_agent: { valueNotEquals: "<?php echo __('Please select an agent'); ?>!"},
|
||||
}
|
||||
});
|
||||
|
@ -682,14 +682,14 @@ switch ($action) {
|
||||
case 'edit_map':
|
||||
case 'update_saved':
|
||||
if (empty($invalidFields) === true) {
|
||||
$action_button = html_print_submit_button(_('Save map'), 'save_button', false, ['mode' => 'primary', 'icon' => 'next'], true);
|
||||
$action_button = html_print_submit_button(__('Save map'), 'save_button', false, ['mode' => 'primary', 'icon' => 'next'], true);
|
||||
} else {
|
||||
$action_button = html_print_submit_button(_('Update map'), 'update_button', false, ['mode' => 'primary', 'icon' => 'next'], true);
|
||||
$action_button = html_print_submit_button(__('Update map'), 'update_button', false, ['mode' => 'primary', 'icon' => 'next'], true);
|
||||
}
|
||||
break;
|
||||
|
||||
case 'new_map':
|
||||
$action_button = html_print_submit_button(_('Save map'), 'save_button', false, ['mode' => 'primary', 'icon' => 'next'], true);
|
||||
$action_button = html_print_submit_button(__('Save map'), 'save_button', false, ['mode' => 'primary', 'icon' => 'next'], true);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -1175,14 +1175,14 @@ if ($config['activate_gis']) {
|
||||
);
|
||||
|
||||
$table->data[4][0] = html_print_label_input_block(
|
||||
__('Ignore new GIS data:'),
|
||||
__('Ignore new GIS data').':',
|
||||
'<div class="flex-row-center">'.$ignore_gis.'</div>'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
$table->data[5][0] = html_print_label_input_block(
|
||||
__('Quiet:').ui_print_help_tip(
|
||||
__('Quiet').ui_print_help_tip(
|
||||
__('The agent still runs but the alerts and events will be stop'),
|
||||
true
|
||||
),
|
||||
@ -1232,7 +1232,7 @@ $table->data[5][1] = html_print_label_input_block(
|
||||
);
|
||||
|
||||
$table->data[6][0] = html_print_label_input_block(
|
||||
__('Ignore unknown').ui_print_help_tip(_('This disables the calculation of the unknown state in the agent and any of its modules, so it will never transition to unknown. The state it reflects is the last known status.'), true),
|
||||
__('Ignore unknown').ui_print_help_tip(__('This disables the calculation of the unknown state in the agent and any of its modules, so it will never transition to unknown. The state it reflects is the last known status.'), true),
|
||||
html_print_select(
|
||||
[
|
||||
'' => __('No change'),
|
||||
|
@ -1545,7 +1545,7 @@ $table->data[40][0] = html_print_label_input_block(
|
||||
);
|
||||
|
||||
$table->data[40][1] = html_print_label_input_block(
|
||||
__('Ignore unknown').ui_print_help_tip(_('This disables the module\'s state calculation to unknown, so it will never transition to unknown. The state it reflects is the last known status.'), true),
|
||||
__('Ignore unknown').ui_print_help_tip(__('This disables the module\'s state calculation to unknown, so it will never transition to unknown. The state it reflects is the last known status.'), true),
|
||||
html_print_select(
|
||||
[
|
||||
'' => __('No change'),
|
||||
|
@ -380,7 +380,7 @@ $modules_select = html_print_select(
|
||||
false
|
||||
);
|
||||
|
||||
$row[] = '<b>'._('Modules').'</b>';
|
||||
$row[] = '<b>'.__('Modules').'</b>';
|
||||
$row[] = $modules_select;
|
||||
|
||||
$table->rowstyle['agents-modules-row'] = 'vertical-align: top; display: none';
|
||||
|
@ -373,7 +373,7 @@ $autorefresh_list_out['operation/dashboard/dashboard'] = 'Dashboard';
|
||||
$autorefresh_list_out['operation/visual_console/render_view'] = 'Visual console';
|
||||
$autorefresh_list_out['operation/events/events'] = 'Events';
|
||||
|
||||
$autorefresh_show = '<p class="edit_user_labels">'._('Autorefresh').ui_print_help_tip(
|
||||
$autorefresh_show = '<p class="edit_user_labels">'.__('Autorefresh').ui_print_help_tip(
|
||||
__('This will activate autorefresh in selected pages'),
|
||||
true
|
||||
).'</p>';
|
||||
|
@ -509,7 +509,7 @@ if ($option === 'edit_agents' || $option === 'edit_modules') {
|
||||
global $SelectAction;
|
||||
|
||||
$SelectAction = '<form id="form_necesario" method="post" id="form_options" action="'.$url.'">';
|
||||
$SelectAction .= '<span class="mrgn_lft_10px mrgn_right_10px">'._('Action').'</span>';
|
||||
$SelectAction .= '<span class="mrgn_lft_10px mrgn_right_10px">'.__('Action').'</span>';
|
||||
$SelectAction .= html_print_select(
|
||||
$options,
|
||||
'option',
|
||||
|
@ -174,7 +174,7 @@ $table->data[2][] = html_print_label_input_block(
|
||||
100,
|
||||
true
|
||||
).ui_print_input_placeholder(
|
||||
__('separate fields with ').SEPARATOR_COLUMN,
|
||||
__('Separate fields with').' '.SEPARATOR_COLUMN,
|
||||
true
|
||||
)
|
||||
);
|
||||
|
@ -192,14 +192,14 @@ $table->data[3][3] .= html_print_checkbox('dynamic_two_tailed', 1, $dynamic_two_
|
||||
$table->data[3][1] = html_print_label_input_block(
|
||||
'',
|
||||
'<div class="inline_flex align-center">'.html_print_label_input_block(
|
||||
__('Dynamic Min. '),
|
||||
__('Dynamic Min.').' ',
|
||||
html_print_input_text('dynamic_min', $dynamic_min, '', 10, 255, true, false, false, '', 'w100p mrgn_top_10px'),
|
||||
[
|
||||
'label_class' => 'font-title-font',
|
||||
'div_class' => 'mrgn_right_10px',
|
||||
]
|
||||
).html_print_label_input_block(
|
||||
__('Dynamic Max. '),
|
||||
__('Dynamic Max.').' ',
|
||||
html_print_input_text('dynamic_max', $dynamic_max, '', 10, 255, true, false, false, '', 'w100p mrgn_top_10px'),
|
||||
[
|
||||
'label_class' => 'font-title-font',
|
||||
|
@ -142,7 +142,7 @@ if (isset($_GET['create']) || isset($_GET['update'])) {
|
||||
// Will return either 0 (in case of error) or an int
|
||||
}
|
||||
} else {
|
||||
ui_print_result_message(false, '', _('Cannot create a template without name'));
|
||||
ui_print_result_message(false, '', __('Cannot create a template without name'));
|
||||
}
|
||||
} else if ($id_np > 0) {
|
||||
// Profile exists
|
||||
|
@ -687,10 +687,6 @@ if ($display_loading === true || $running_create === true || $running_delete ===
|
||||
}
|
||||
|
||||
$(document).ready (function () {
|
||||
var demo_items_count = <?php echo $demo_items_count; ?>;
|
||||
var agent_count_span_str = '<?php echo __('demo agents currently in the system'); ?>';
|
||||
var agents_str = '<?php echo __('agents'); ?>';
|
||||
|
||||
$("#table-adv").hide();
|
||||
|
||||
$('#checkbox-toggle_adv_opts').change(function() {
|
||||
|
@ -246,7 +246,7 @@ if ($config['history_db_enabled'] == 1) {
|
||||
true
|
||||
).' '.__('ago').'.';
|
||||
} else {
|
||||
$table_status->data[1][0] .= __('not executed');
|
||||
$table_status->data[1][0] .= __('Not executed');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -228,7 +228,7 @@ $row['publicUrl'] = html_print_label_input_block(
|
||||
);
|
||||
|
||||
$row['agentsSync'] = html_print_label_input_block(
|
||||
__('Number of Agents to synchronize').ui_print_help_tip(
|
||||
__('Number of agents to synchronize').ui_print_help_tip(
|
||||
__('Number of agents that will synchronize at the same time, minimum 10 max 1000'),
|
||||
true
|
||||
),
|
||||
|
@ -505,7 +505,7 @@ $ldap_rows = [];
|
||||
// Method.
|
||||
$auth_methods = [
|
||||
'mysql' => __('Local %s', get_product_name()),
|
||||
'ldap' => __('ldap'),
|
||||
'ldap' => __('LDAP'),
|
||||
];
|
||||
if (enterprise_installed() === true) {
|
||||
add_enterprise_auth_methods($auth_methods);
|
||||
|
@ -557,7 +557,7 @@ $table->data[$i][] = html_print_label_input_block(
|
||||
)
|
||||
);
|
||||
$table->data[$i++][] = html_print_label_input_block(
|
||||
__('Referrer security').ui_print_help_tip(__('When it is active, the source of the requests is checked. If the user comes from a URL external to Pandora FMS, the source of the activity will be considered suspicious.'), true),
|
||||
__('Referer security').ui_print_help_tip(__('When it is active, the source of the requests is checked. If the user comes from a URL external to Pandora FMS, the source of the activity will be considered suspicious.'), true),
|
||||
html_print_checkbox_switch(
|
||||
'referer_security',
|
||||
1,
|
||||
@ -720,7 +720,7 @@ $table->data[$i++][] = html_print_label_input_block(
|
||||
);
|
||||
|
||||
$help_tip = ui_print_help_tip(
|
||||
__('If there is any event “In process” with a specific additional ID and a “New” event with that additional ID is received, it will be created as “In process.” New events will also inherit the Event Custom ID from the old event.'),
|
||||
__('If there is any event "In process" with a specific additional ID and a "New" event with that additional ID is received, it will be created as "In process." New events will also inherit the Event Custom ID from the old event.'),
|
||||
true
|
||||
);
|
||||
|
||||
|
@ -2398,7 +2398,7 @@ $(document).ready (function () {
|
||||
$("#button-interval_del_btn").click( function() {
|
||||
confirmDialog({
|
||||
title: "<?php echo __('Delete interval'); ?>",
|
||||
message: "<?php echo __('This action is not reversible. Are you sure'); ?>",
|
||||
message: "<?php echo __('This action is not reversible. Are you sure?'); ?>",
|
||||
onAccept: function() {
|
||||
var interval_selected = $('#intervals option:selected').val();
|
||||
$('#hidden-interval_to_delete').val(interval_selected);
|
||||
|
@ -400,7 +400,7 @@ if ($create_user === true) {
|
||||
// Previously defined.
|
||||
$values['autorefresh_white_list'] = $autorefresh_white_list;
|
||||
|
||||
// eHorus user level conf.
|
||||
// Ehorus user level conf.
|
||||
if ((bool) $config['ehorus_user_level_conf'] === true) {
|
||||
$values['ehorus_user_level_enabled'] = (bool) get_parameter('ehorus_user_level_enabled', false);
|
||||
if ($values['ehorus_user_level_enabled'] === true) {
|
||||
@ -1417,7 +1417,7 @@ $default_event_filter .= html_print_select(
|
||||
).'</div>';
|
||||
|
||||
if (isset($config['ehorus_user_level_conf']) === true && (bool) $config['ehorus_user_level_conf'] === true) {
|
||||
$ehorus = '<div class="label_select_simple"><p class="edit_user_labels">'.__('eHorus user access enabled').'</p>';
|
||||
$ehorus = '<div class="label_select_simple"><p class="edit_user_labels">'.__('Ehorus user access enabled').'</p>';
|
||||
$ehorus .= html_print_checkbox_switch(
|
||||
'ehorus_user_level_enabled',
|
||||
1,
|
||||
@ -1425,7 +1425,7 @@ if (isset($config['ehorus_user_level_conf']) === true && (bool) $config['ehorus_
|
||||
true
|
||||
).'</div>';
|
||||
$ehorus .= '<div class="user_edit_ehorus_outer">';
|
||||
$ehorus .= '<div class="label_select_simple user_edit_ehorus_inner"><p class="edit_user_labels">'.__('eHorus user').'</p>';
|
||||
$ehorus .= '<div class="label_select_simple user_edit_ehorus_inner"><p class="edit_user_labels">'.__('Ehorus user').'</p>';
|
||||
$ehorus .= html_print_input_text(
|
||||
'ehorus_user_level_user',
|
||||
$user_info['ehorus_user_level_user'],
|
||||
@ -1434,7 +1434,7 @@ if (isset($config['ehorus_user_level_conf']) === true && (bool) $config['ehorus_
|
||||
45,
|
||||
true
|
||||
).'</div>';
|
||||
$ehorus .= '<div class="label_select_simple user_edit_ehorus_inner"><p class="edit_user_labels">'.__('eHorus password').'</p>';
|
||||
$ehorus .= '<div class="label_select_simple user_edit_ehorus_inner"><p class="edit_user_labels">'.__('Ehorus password').'</p>';
|
||||
$ehorus .= html_print_input_password(
|
||||
'ehorus_user_level_pass',
|
||||
io_output_password($user_info['ehorus_user_level_pass']),
|
||||
|
@ -1178,7 +1178,7 @@ class DiscoveryTaskList extends HTML
|
||||
}
|
||||
|
||||
if (empty($table->data)) {
|
||||
$content = '<div class="nf">'.__('Server').' '.$server_name.' '.__('has no discovery tasks assigned').'</div>';
|
||||
$content = '<div class="nf">'.__('Server %s has no discovery tasks assigned', $server_name).'</div>';
|
||||
$return = false;
|
||||
} else {
|
||||
$content = html_print_table($table, true);
|
||||
@ -1327,7 +1327,7 @@ class DiscoveryTaskList extends HTML
|
||||
{
|
||||
$result = '<div class="flex">';
|
||||
$result .= '<div class="subtitle">';
|
||||
$result .= '<span>'._('Overall Progress').'</span>';
|
||||
$result .= '<span>'.__('Overall Progress').'</span>';
|
||||
$result .= '<div class="mrgn_top_25px">';
|
||||
$result .= progress_circular_bar(
|
||||
$task['id_rt'],
|
||||
|
@ -267,7 +267,7 @@ class ManageExtensions extends HTML
|
||||
],
|
||||
[
|
||||
'link' => '',
|
||||
'label' => _('Manage disco packages'),
|
||||
'label' => __('Manage disco packages'),
|
||||
'selected' => 1,
|
||||
],
|
||||
]
|
||||
|
@ -907,7 +907,7 @@ if (check_login()) {
|
||||
if ($id_filter == -1) {
|
||||
$result_array['error'] = 1;
|
||||
$result_array['msg'] = ui_print_error_message(
|
||||
__('please, select a filter'),
|
||||
__('Please, select a filter'),
|
||||
'',
|
||||
true
|
||||
);
|
||||
@ -923,7 +923,7 @@ if (check_login()) {
|
||||
if ($filters['id_custom_fields'] == '') {
|
||||
$result_array['error'] = 1;
|
||||
$result_array['msg'] = ui_print_error_message(
|
||||
__('please, select a custom field'),
|
||||
__('Please, select a custom field'),
|
||||
'',
|
||||
true
|
||||
);
|
||||
@ -980,7 +980,7 @@ if (check_login()) {
|
||||
if ($id_filter == -1) {
|
||||
$result_array['error'] = 1;
|
||||
$result_array['msg'] = ui_print_error_message(
|
||||
__('please, select a filter'),
|
||||
__('Please, select a filter'),
|
||||
'',
|
||||
true
|
||||
);
|
||||
|
@ -206,10 +206,7 @@ if ($get_double_auth_info_page) {
|
||||
$html .= '<div class="left_align">';
|
||||
$html .= '<p>';
|
||||
$html .= __('You are about to activate the double authentication').'. ';
|
||||
$html .= __(
|
||||
'With this option enabled, your account access will be more secure,
|
||||
cause a code generated by other application will be required after the login'
|
||||
).'. ';
|
||||
$html .= __('With this option enabled, your account access will be more secure, cause a code generated by other application will be required after the login').'. ';
|
||||
$html .= '</p>';
|
||||
$html .= '<p>';
|
||||
$html .= __('You will need to install the app from the following link before continue').'. ';
|
||||
|
@ -2548,7 +2548,7 @@ if ($drawConsoleSound === true) {
|
||||
]
|
||||
);
|
||||
$output .= '<span class="text-discovered-alerts">';
|
||||
$output .= __('Congrats! there’s nothing to show');
|
||||
$output .= __('Congrats! there\'s nothing to show');
|
||||
$output .= '</span>';
|
||||
$output .= '</div>';
|
||||
$output .= '<div class="elements-discovered-alerts"><ul></ul></div>';
|
||||
|
@ -339,11 +339,7 @@ function process_user_login_remote($login, $pass, $api=false)
|
||||
|
||||
// The user does not exist and can not be created.
|
||||
if ($config['autocreate_remote_users'] == 0 || is_user_blacklisted($login)) {
|
||||
$config['auth_error'] = __(
|
||||
'Ooops User not found in
|
||||
database or incorrect password'
|
||||
);
|
||||
|
||||
$config['auth_error'] = __('Ooops User not found in database or incorrect password');
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -376,7 +376,7 @@ class AgentDeployWizard
|
||||
$instructions_url = 'https://pandorafms.com/manual/en/documentation/pandorafms/installation/05_configuration_agents';
|
||||
}
|
||||
|
||||
$instructions_link = '<a class="green-link" style="font-size: 15px;" href="'.$instructions_url.'" target="_blank">'.__('view the following instructions').'</a>';
|
||||
$instructions_link = '<a class="green-link" style="font-size: 15px;" href="'.$instructions_url.'" target="_blank">'.__('View the following instructions').'</a>';
|
||||
|
||||
$more_info_link = html_print_div(
|
||||
[
|
||||
|
@ -953,10 +953,7 @@ class CalendarManager
|
||||
if ($specialDay->save() === true) {
|
||||
$success = true;
|
||||
} else {
|
||||
$reason = \__(
|
||||
'Failed saving special day: ',
|
||||
$config['dbconnection']->error
|
||||
);
|
||||
$reason = \__('Failed saving special day: %s', $config['dbconnection']->error);
|
||||
}
|
||||
}
|
||||
} catch (\Exception $e) {
|
||||
|
@ -1907,7 +1907,7 @@ class ConsoleSupervisor
|
||||
$this->notify(
|
||||
[
|
||||
'type' => 'NOTIF.PHP.CHROMIUM',
|
||||
'title' => __('chromium is not installed'),
|
||||
'title' => __('Chromium is not installed'),
|
||||
'message' => __('To be able to create images of the graphs for PDFs, please install the chromium extension. For that, it is necessary to follow these steps:'),
|
||||
'url' => $url,
|
||||
'icon_notification' => self::ICON_HEADSUP,
|
||||
@ -1970,7 +1970,7 @@ class ConsoleSupervisor
|
||||
[
|
||||
'type' => 'NOTIF.PHP.VERSION.SUPPORT',
|
||||
'title' => __('PHP UPDATE REQUIRED'),
|
||||
'message' => __('You should update your PHP version because it will be out of official support').'<br>'.__('Current PHP version: ').PHP_VERSION,
|
||||
'message' => __('You should update your PHP version because it will be out of official support').'<br>'.__('Current PHP version').': '.PHP_VERSION,
|
||||
'url' => $url,
|
||||
'icon_notification' => self::ICON_HEADSUP,
|
||||
]
|
||||
@ -2016,7 +2016,7 @@ class ConsoleSupervisor
|
||||
[
|
||||
'type' => 'NOTIF.MYSQL.VERSION',
|
||||
'title' => __('MYSQL UPDATE REQUIRED'),
|
||||
'message' => __('You should update your MYSQL version because it will be out of official support').'<br>'.__('Current MYSQL version: ').$mysql_version,
|
||||
'message' => __('You should update your MYSQL version because it will be out of official support').'<br>'.__('Current MYSQL version: %s', $mysql_version),
|
||||
'url' => $url,
|
||||
'icon_notification' => self::ICON_HEADSUP,
|
||||
]
|
||||
|
@ -751,7 +751,7 @@ class CredentialStore extends Wizard
|
||||
$identifier = get_parameter('identifier', null);
|
||||
|
||||
if (empty($identifier)) {
|
||||
$this->ajaxMsg('error', __('identifier cannot be empty'), true);
|
||||
$this->ajaxMsg('error', __('Identifier cannot be empty'), true);
|
||||
}
|
||||
|
||||
if (self::getKey($identifier) === false) {
|
||||
|
@ -495,7 +495,7 @@ class EventSound extends HTML
|
||||
$('#file-sound').change(function(){
|
||||
var ext = $('#file-sound').val().split('.').pop().toLowerCase();
|
||||
if($.inArray(ext, ['wav']) == -1) {
|
||||
alert('<?php __('invalid extension'); ?>');
|
||||
alert('<?php __('Invalid extension'); ?>');
|
||||
$('#file-sound').val('');
|
||||
}
|
||||
});
|
||||
|
@ -3120,7 +3120,7 @@ class NetworkMap
|
||||
html_print_input_text(
|
||||
'edit_name_node',
|
||||
'',
|
||||
__('name node'),
|
||||
__('Name node'),
|
||||
'20',
|
||||
'50',
|
||||
true
|
||||
@ -3132,7 +3132,7 @@ class NetworkMap
|
||||
html_print_input_text(
|
||||
'edit_name_fictional_node',
|
||||
'',
|
||||
__('name fictional node'),
|
||||
__('Name fictional node'),
|
||||
'20',
|
||||
'50',
|
||||
true
|
||||
@ -3502,7 +3502,7 @@ class NetworkMap
|
||||
html_print_input_text(
|
||||
'name_fictional_node',
|
||||
'',
|
||||
__('name fictional node'),
|
||||
__('Name fictional node'),
|
||||
'20',
|
||||
'50',
|
||||
true
|
||||
|
@ -427,7 +427,7 @@ class OrderInterpreter extends Wizard
|
||||
echo '</ul>';
|
||||
if ($iterator > 10) {
|
||||
echo '<div class="more_results"><span class="">
|
||||
+ '.$more_results.' '.__('results found').'</span></div>';
|
||||
+ '.$more_results.' '.__('Results found').'</span></div>';
|
||||
}
|
||||
|
||||
if ($iterator === 0) {
|
||||
|
@ -598,7 +598,7 @@ class SatelliteAgent extends HTML
|
||||
if ($this->parseSatelliteConf('save', $values) === false) {
|
||||
$this->ajaxMsg('error', __('Error saving agent'));
|
||||
} else {
|
||||
$this->ajaxMsg('result', _('Host '.$values['addres'].' added.'));
|
||||
$this->ajaxMsg('result', __('Host %s added.', $values['addres']));
|
||||
}
|
||||
|
||||
exit;
|
||||
@ -640,8 +640,8 @@ class SatelliteAgent extends HTML
|
||||
$this->ajaxMsg(
|
||||
'result',
|
||||
($values['delete'] === '0')
|
||||
? _('Host '.$values['address'].' deleted.')
|
||||
: _('Host '.$values['address'].' added.'),
|
||||
? __('Host %s deleted.', $values['address'])
|
||||
: __('Host %s added.', $values['address']),
|
||||
true
|
||||
);
|
||||
}
|
||||
@ -685,8 +685,8 @@ class SatelliteAgent extends HTML
|
||||
$this->ajaxMsg(
|
||||
'result',
|
||||
($values['disable'] === '0')
|
||||
? _('Host '.$values['address'].' disabled.')
|
||||
: _('Host '.$values['address'].' enabled.'),
|
||||
? __('Host %s disabled.', $values['address'])
|
||||
: __('Host %s enabled.', $values['address']),
|
||||
false,
|
||||
true
|
||||
);
|
||||
|
@ -305,7 +305,7 @@ class SatelliteCollection extends HTML
|
||||
if ($this->parseSatelliteConf('add', $short_name) === false) {
|
||||
$this->ajaxMsg('error', __('Error adding collection'));
|
||||
} else {
|
||||
$this->ajaxMsg('result', _('Collection '.$short_name.' added.'));
|
||||
$this->ajaxMsg('result', __('Collection %s added.', $short_name));
|
||||
}
|
||||
|
||||
exit;
|
||||
@ -324,7 +324,7 @@ class SatelliteCollection extends HTML
|
||||
if ($this->parseSatelliteConf('delete', $short_name) === false) {
|
||||
$this->ajaxMsg('error', __('Error deleting collection'));
|
||||
} else {
|
||||
$this->ajaxMsg('result', _('Collection '.$short_name.' deleted.'));
|
||||
$this->ajaxMsg('result', __('Collection %s deleted.', $short_name));
|
||||
}
|
||||
|
||||
exit;
|
||||
|
@ -447,7 +447,7 @@ class WelcomeWindow extends Wizard
|
||||
'direct' => 1,
|
||||
'block_content' => [
|
||||
[
|
||||
'label' => __('This is your post-installation status diagnostic:'),
|
||||
'label' => __('This is your post-installation status diagnostic'),
|
||||
'arguments' => [
|
||||
'class' => 'first_lbl',
|
||||
'name' => 'lbl_diagnosis',
|
||||
@ -658,7 +658,7 @@ class WelcomeWindow extends Wizard
|
||||
],
|
||||
[
|
||||
'arguments' => [
|
||||
'label' => __('Let's do it!'),
|
||||
'label' => __('Let\'s do it!'),
|
||||
'type' => 'button',
|
||||
'attributes' => [
|
||||
'class' => 'secondary',
|
||||
|
@ -4210,7 +4210,7 @@ function series_type_graph_array($data, $show_elements_graph)
|
||||
$config['csv_decimal_separator'],
|
||||
$config['csv_decimal_separator'] == ',' ? '.' : ','
|
||||
)
|
||||
).' '.$value['unit'].'</span> <span class="legend-font-small">'._('Avg.').' </span><span class="bolder">'.remove_right_zeros(
|
||||
).' '.$value['unit'].'</span> <span class="legend-font-small">'.__('Avg.').' </span><span class="bolder">'.remove_right_zeros(
|
||||
number_format(
|
||||
$value['avg'],
|
||||
$config['graph_precision'],
|
||||
@ -4280,7 +4280,7 @@ function series_type_graph_array($data, $show_elements_graph)
|
||||
$config['thousand_separator']
|
||||
)
|
||||
).' '.$value['unit'];
|
||||
$data_return['legend'][$key] .= '</span> <span class="legend-font-small">'._('Avg:').' </span><span class="bolder">';
|
||||
$data_return['legend'][$key] .= '</span> <span class="legend-font-small">'.__('Avg:').' </span><span class="bolder">';
|
||||
$data_return['legend'][$key] .= remove_right_zeros(
|
||||
number_format(
|
||||
$value['avg'],
|
||||
|
@ -14599,7 +14599,7 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4)
|
||||
}
|
||||
|
||||
if (is_nan($graph_seconds) || $graph_seconds <= 0) {
|
||||
// returnError('error_module_graph', __(''));
|
||||
// returnError('error_module_graph', '');
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -359,31 +359,31 @@ function config_update_config()
|
||||
}
|
||||
|
||||
if (config_update_value('identification_reminder', get_parameter('identification_reminder'), true) === false) {
|
||||
$error_update[] = __('Identification_reminder');
|
||||
$error_update[] = __('Identification reminder');
|
||||
}
|
||||
|
||||
if (config_update_value('include_agents', (bool) get_parameter('include_agents'), true) === false) {
|
||||
$error_update[] = __('Include_agents');
|
||||
$error_update[] = __('Include agents');
|
||||
}
|
||||
|
||||
if (config_update_value('alias_as_name', get_parameter('alias_as_name'), true) === false) {
|
||||
$error_update[] = __('alias_as_name');
|
||||
$error_update[] = __('Alias as name');
|
||||
}
|
||||
|
||||
if (config_update_value('keep_in_process_status_extra_id', get_parameter('keep_in_process_status_extra_id'), true) === false) {
|
||||
$error_update[] = __('keep_in_process_status_extra_id');
|
||||
$error_update[] = __('Keep in process status extra id');
|
||||
}
|
||||
|
||||
if (config_update_value('show_experimental_features', get_parameter('show_experimental_features'), true) === false) {
|
||||
$error_update[] = __('show_experimental_features');
|
||||
$error_update[] = __('Show experimental features');
|
||||
}
|
||||
|
||||
if (config_update_value('eastern_eggs_disabled', get_parameter('eastern_eggs_disabled'), true) === false) {
|
||||
$error_update[] = __('eastern_eggs_disabled');
|
||||
$error_update[] = __('Easter eggs disabled');
|
||||
}
|
||||
|
||||
if (config_update_value('number_modules_queue', get_parameter('number_modules_queue'), true) === false) {
|
||||
$error_update[] = __('number_modules_queue');
|
||||
$error_update[] = __('Number modules queue');
|
||||
}
|
||||
|
||||
if (config_update_value('console_log_enabled', get_parameter('console_log_enabled'), true) === false) {
|
||||
@ -1908,35 +1908,35 @@ function config_update_config()
|
||||
|
||||
case 'pandorarc':
|
||||
if (config_update_value('ehorus_enabled', (int) get_parameter('ehorus_enabled', 0), true) === false) {
|
||||
$error_update[] = __('Enable eHorus');
|
||||
$error_update[] = __('Enable Ehorus');
|
||||
}
|
||||
|
||||
if (config_update_value('ehorus_user_level_conf', (int) get_parameter('ehorus_user_level_conf', 0), true) === false) {
|
||||
$error_update[] = __('eHorus user login');
|
||||
$error_update[] = __('Ehorus user login');
|
||||
}
|
||||
|
||||
if (config_update_value('ehorus_user', (string) get_parameter('ehorus_user', $config['ehorus_user']), true) === false) {
|
||||
$error_update[] = __('eHorus user');
|
||||
$error_update[] = __('Ehorus user');
|
||||
}
|
||||
|
||||
if (config_update_value('ehorus_pass', (string) get_parameter('ehorus_pass', $config['ehorus_pass']), true, true) === false) {
|
||||
$error_update[] = __('eHorus password');
|
||||
$error_update[] = __('Ehorus password');
|
||||
}
|
||||
|
||||
if (config_update_value('ehorus_hostname', (string) get_parameter('ehorus_hostname', $config['ehorus_hostname']), true) === false) {
|
||||
$error_update[] = __('eHorus API hostname');
|
||||
$error_update[] = __('Ehorus API hostname');
|
||||
}
|
||||
|
||||
if (config_update_value('ehorus_port', (int) get_parameter('ehorus_port', $config['ehorus_port']), true) === false) {
|
||||
$error_update[] = __('eHorus API port');
|
||||
$error_update[] = __('Ehorus API port');
|
||||
}
|
||||
|
||||
if (config_update_value('ehorus_req_timeout', (int) get_parameter('ehorus_req_timeout', $config['ehorus_req_timeout']), true) === false) {
|
||||
$error_update[] = __('eHorus request timeout');
|
||||
$error_update[] = __('Ehorus request timeout');
|
||||
}
|
||||
|
||||
if (config_update_value('ehorus_custom_field', (string) get_parameter('ehorus_custom_field', $config['ehorus_custom_field']), true) === false) {
|
||||
$error_update[] = __('eHorus id custom field');
|
||||
$error_update[] = __('Ehorus id custom field');
|
||||
}
|
||||
break;
|
||||
|
||||
|
@ -6008,7 +6008,7 @@ function get_row_response_action(
|
||||
$output .= __('Event # %d', $event_response['event_id']);
|
||||
if (empty($command_str) === false) {
|
||||
$output .= ' ';
|
||||
$output .= __('Executing command: ');
|
||||
$output .= __('Executing command').': ';
|
||||
}
|
||||
|
||||
$output .= '</b>';
|
||||
|
@ -8185,7 +8185,7 @@ function reporting_sql_auxiliary($report, $content, $pdf=false)
|
||||
}
|
||||
} else {
|
||||
$return['correct'] = 0;
|
||||
$return['error'] = __('Illegal query: Due to security restrictions, there are some tokens or words you cannot use: *, delete, drop, alter, modify, password, pass, insert or update.');
|
||||
$return['error'] = __('Illegal query: due to security restrictions, there are some tokens or words you cannot use: *, delete, drop, alter, modify, password, pass, insert or update.');
|
||||
}
|
||||
|
||||
return $return;
|
||||
|
@ -5395,43 +5395,43 @@ function reporting_html_availability($table, $item, $pdf=0)
|
||||
if ($item['fields']['total_time']) {
|
||||
$table1->head[2] = __('Total time');
|
||||
} else {
|
||||
$table1->head[2] = __('');
|
||||
$table1->head[2] = '';
|
||||
}
|
||||
|
||||
if ($item['fields']['time_failed']) {
|
||||
$table1->head[3] = __('Time failed');
|
||||
} else {
|
||||
$table1->head[3] = __('');
|
||||
$table1->head[3] = '';
|
||||
}
|
||||
|
||||
if ($item['fields']['time_in_ok_status']) {
|
||||
$table1->head[4] = __('Time OK');
|
||||
} else {
|
||||
$table1->head[4] = __('');
|
||||
$table1->head[4] = '';
|
||||
}
|
||||
|
||||
if ($item['fields']['time_in_warning_status']) {
|
||||
$table1->head[5] = __('Time in warning status');
|
||||
} else {
|
||||
$table1->head[5] = __('');
|
||||
$table1->head[5] = '';
|
||||
}
|
||||
|
||||
if ($item['fields']['time_in_unknown_status']) {
|
||||
$table1->head[6] = __('Time Unknown');
|
||||
} else {
|
||||
$table1->head[6] = __('');
|
||||
$table1->head[6] = '';
|
||||
}
|
||||
|
||||
if ($item['fields']['time_of_not_initialized_module']) {
|
||||
$table1->head[7] = __('Time Not Init Module');
|
||||
} else {
|
||||
$table1->head[7] = __('');
|
||||
$table1->head[7] = '';
|
||||
}
|
||||
|
||||
if ($item['fields']['time_of_downtime']) {
|
||||
$table1->head[8] = __('Time Downtime');
|
||||
} else {
|
||||
$table1->head[8] = __('');
|
||||
$table1->head[8] = '';
|
||||
}
|
||||
|
||||
$table1->head[9] = __('% Ok');
|
||||
@ -5489,31 +5489,31 @@ function reporting_html_availability($table, $item, $pdf=0)
|
||||
if ($item['fields']['total_checks']) {
|
||||
$table2->head[2] = __('Total checks');
|
||||
} else {
|
||||
$table2->head[2] = __('');
|
||||
$table2->head[2] = '';
|
||||
}
|
||||
|
||||
if ($item['fields']['checks_failed']) {
|
||||
$table2->head[3] = __('Checks failed');
|
||||
} else {
|
||||
$table2->head[3] = __('');
|
||||
$table2->head[3] = '';
|
||||
}
|
||||
|
||||
if ($item['fields']['checks_in_ok_status']) {
|
||||
$table2->head[4] = __('Checks OK');
|
||||
} else {
|
||||
$table2->head[4] = __('');
|
||||
$table2->head[4] = '';
|
||||
}
|
||||
|
||||
if ($item['fields']['checks_in_warning_status']) {
|
||||
$table2->head[5] = __('Checks Warning');
|
||||
} else {
|
||||
$table2->head[5] = __('');
|
||||
$table2->head[5] = '';
|
||||
}
|
||||
|
||||
if ($item['fields']['unknown_checks']) {
|
||||
$table2->head[6] = __('Checks Uknown');
|
||||
} else {
|
||||
$table2->head[6] = __('');
|
||||
$table2->head[6] = '';
|
||||
}
|
||||
|
||||
$table2->headstyle = [];
|
||||
|
@ -138,7 +138,7 @@ function snmp_get_default_translations()
|
||||
'post_process' => '1',
|
||||
];
|
||||
$return['1.3.6.1.2.1.1.3.0'] = [
|
||||
'description' => __('system Up time'),
|
||||
'description' => __('System Up time'),
|
||||
'post_process' => '0.00000011574074',
|
||||
];
|
||||
|
||||
|
@ -8363,17 +8363,17 @@ function ui_print_status_secmon_div($status, $title=false)
|
||||
{
|
||||
$class = 'status_rounded_rectangles forced_title';
|
||||
if (($status) === 'normal') {
|
||||
$title = ($title === false) ? __('normal') : $title;
|
||||
$title = ($title === false) ? __('Normal') : $title;
|
||||
return ui_print_div('group_view_ok '.$class, $title);
|
||||
}
|
||||
|
||||
if (($status) === 'warning') {
|
||||
$title = ($title === false) ? __('warning') : $title;
|
||||
$title = ($title === false) ? __('Warning') : $title;
|
||||
return ui_print_div('group_view_warn '.$class, $title);
|
||||
}
|
||||
|
||||
if (($status) === 'critical') {
|
||||
$title = ($title === false) ? __('critical') : $title;
|
||||
$title = ($title === false) ? __('Critical') : $title;
|
||||
return ui_print_div('group_view_crit '.$class, $title);
|
||||
}
|
||||
}
|
||||
|
@ -12,12 +12,11 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
|
||||
|
||||
/**
|
||||
* @package Include
|
||||
* @subpackage Clippy
|
||||
*/
|
||||
|
||||
|
||||
function clippy_agent_out_of_limits()
|
||||
{
|
||||
$return_tours = [];
|
||||
@ -32,7 +31,7 @@ function clippy_agent_out_of_limits()
|
||||
$return_tours['tours']['agent_out_of_limits']['steps'] = [];
|
||||
$return_tours['tours']['agent_out_of_limits']['steps'][] = [
|
||||
'init_step_context' => true,
|
||||
'intro' => '<table>'.'<tr>'.'<td class="context_help_title">'.__('Agent contact date passed it\'s ETA!.').'</td>'.'</tr>'.'<tr>'.'<td class="context_help_body">'.__('This happen when your agent stopped reporting or the server have any problem (too load or just down). Check also connectivity between the agent and the server.').'</td>'.'</tr>'.'</table>',
|
||||
'intro' => '<table>'.'<tr>'.'<td class="context_help_title">'.__('Agent contact date passed it\'s ETA!').'</td>'.'</tr>'.'<tr>'.'<td class="context_help_body">'.__('This happen when your agent stopped reporting or the server have any problem (too load or just down). Check also connectivity between the agent and the server.').'</td>'.'</tr>'.'</table>',
|
||||
];
|
||||
$return_tours['tours']['agent_out_of_limits']['conf'] = [];
|
||||
$return_tours['tours']['agent_out_of_limits']['conf']['autostart'] = false;
|
||||
|
@ -12,12 +12,11 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
|
||||
|
||||
/**
|
||||
* @package Include
|
||||
* @subpackage Clippy
|
||||
*/
|
||||
|
||||
|
||||
function clippy_start_page()
|
||||
{
|
||||
$return_tours = [];
|
||||
@ -36,7 +35,7 @@ function clippy_start_page()
|
||||
$return_tours['tours']['monitoring_server_step_3']['steps'][] = [
|
||||
'element' => "img[alt='Modules']",
|
||||
'position' => 'left',
|
||||
'intro' => __('Click in this tab..'),
|
||||
'intro' => __('Click in this tab'),
|
||||
];
|
||||
$return_tours['tours']['monitoring_server_step_3']['conf'] = [];
|
||||
$return_tours['tours']['monitoring_server_step_3']['conf']['show_bullets'] = 0;
|
||||
|
@ -12,12 +12,11 @@
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU General Public License for more details.
|
||||
|
||||
|
||||
/**
|
||||
* @package Include
|
||||
* @subpackage Clippy
|
||||
*/
|
||||
|
||||
|
||||
function clippy_interval_agent_min()
|
||||
{
|
||||
$return_tours = [];
|
||||
@ -33,7 +32,7 @@ function clippy_interval_agent_min()
|
||||
$return_tours['tours']['interval_agent_min']['steps'][] = [
|
||||
'init_step_context' => true,
|
||||
'intro' => __('Please note that having agents with a monitoring interval below 300 seconds is not recommended. This will impact seriously in the performance of the server. For example, having 200 agents with one minute interval, is the same than having 1000 agents with a 5 minute interval. The probability of getting unknown modules is higher, and the impact on the server is higher because it requires a shorter response time.'),
|
||||
'title' => __('Interval Agent.'),
|
||||
'title' => __('Interval agent.'),
|
||||
'img' => html_print_image(
|
||||
'images/info-warning.svg',
|
||||
true,
|
||||
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -357,7 +357,7 @@ class SecurityHardening extends Widget
|
||||
break;
|
||||
|
||||
default:
|
||||
$output .= \ui_print_info_message(_('Please, configure this widget before use'), '', true);
|
||||
$output .= \ui_print_info_message(__('Please, configure this widget before use'), '', true);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -254,9 +254,7 @@ class Module extends Entity
|
||||
} catch (\Exception $e) {
|
||||
// Unexistent agent.
|
||||
throw new \Exception(
|
||||
__METHOD__.__(
|
||||
' error: Module has no agent assigned.'
|
||||
)
|
||||
__METHOD__.' '.__('error: Module has no agent assigned')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ abstract class Controller
|
||||
$file_stream = Stream::create($stream);
|
||||
} catch (\Throwable $th) {
|
||||
throw new ForbiddenActionException(
|
||||
__('Error download file: ').$th->getMessage(),
|
||||
__('Error download file').': '.$th->getMessage(),
|
||||
empty($th->getCode()) === true ? HttpCodesEnum::BAD_REQUEST : $th->getCode()
|
||||
);
|
||||
}
|
||||
|
@ -79,7 +79,7 @@ abstract class FilterAbstract extends SerializableAbstract
|
||||
foreach ($params as $field => $value) {
|
||||
if (method_exists($this, 'set'.ucfirst($field)) === false) {
|
||||
if ($this->getEntityFilter() === null || method_exists($this->getEntityFilter(), 'set'.ucfirst($field)) === false) {
|
||||
throw new BadRequestException(__('Field').': '.$field.' '.__('is not a valid parameter'));
|
||||
throw new BadRequestException(__('Field: %s is not a valid parameter', $field));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -59,12 +59,12 @@ abstract class SerializableAbstract implements JsonSerializable
|
||||
foreach ($params as $field => $value) {
|
||||
// Not valid parameters.
|
||||
if (method_exists($this, 'set'.ucfirst($field)) === false) {
|
||||
throw new BadRequestException(__('Field').': '.$field.' '.__('is not a valid parameter'));
|
||||
throw new BadRequestException(__('Field: %s is not a valid parameter', $field));
|
||||
}
|
||||
|
||||
// Read only parameters.
|
||||
if (isset($this->fieldsReadOnly()[$field]) === true) {
|
||||
throw new BadRequestException(__('Field').': '.$field.' '.__('is a read only parameter'));
|
||||
throw new BadRequestException(__('Field: %s is a read only parameter', $field));
|
||||
}
|
||||
|
||||
$this->{'set'.ucfirst($field)}($value ?? null);
|
||||
|
@ -53,7 +53,7 @@ final class UserValidation
|
||||
$this->existsUser($user->getIdUser());
|
||||
} else {
|
||||
if ($user->getIdUser() !== $oldUser->getIdUser()) {
|
||||
throw new BadRequestException(__('idUser cannot be updated'));
|
||||
throw new BadRequestException(__('IdUser cannot be updated'));
|
||||
}
|
||||
}
|
||||
|
||||
@ -302,7 +302,7 @@ final class UserValidation
|
||||
private function validateIdUser(User $user): void
|
||||
{
|
||||
if ($user->getIdUser() === false) {
|
||||
throw new BadRequestException(__('idUser is missing'));
|
||||
throw new BadRequestException(__('IdUser is missing'));
|
||||
}
|
||||
|
||||
// Cannot have blanks.
|
||||
|
@ -181,9 +181,9 @@ class GeneralTacticalView
|
||||
|
||||
// 👋
|
||||
if (empty($name) === true) {
|
||||
$message = __('Welcome back! 👋');
|
||||
$message = __('Welcome back!').' 👋';
|
||||
} else {
|
||||
$message = __('Welcome back %s! 👋', $name);
|
||||
$message = __('Welcome back %s!', $name).' 👋';
|
||||
}
|
||||
}
|
||||
|
||||
@ -228,29 +228,29 @@ class GeneralTacticalView
|
||||
|
||||
if ($name !== '') {
|
||||
$emojiOptions = [
|
||||
'have_good_day' => __('Have a good day %s', $name).' ✌',
|
||||
'welcome_back' => __('Welcome back! %s', $name).' 👋',
|
||||
'merry_christmas' => __('Welcome back! %s', $name).' 🎅',
|
||||
'have_good_day' => __('Have a good day %s!', $name).' ✌',
|
||||
'welcome_back' => __('Welcome back %s!', $name).' 👋',
|
||||
'merry_christmas' => __('Welcome back %s!', $name).' 🎅',
|
||||
'good_morning' => __('Good morning, %s!', $name).' ☕',
|
||||
'good_evening' => __('Good evening, %s', $name).' 🌇',
|
||||
'good_night' => __('Good night, %s', $name).' 🌕',
|
||||
'happy_summer' => __('Happy summer, %s', $name).' 🌞',
|
||||
'happy_winter' => __('Happy winter, %s', $name).' ⛄',
|
||||
'happy_autumn' => __('Happy autumn, %s', $name).' 🍂',
|
||||
'happy_spring' => __('Happy spring, %s', $name).' 🌻',
|
||||
'good_evening' => __('Good evening, %s!', $name).' 🌇',
|
||||
'good_night' => __('Good night, %s!', $name).' 🌕',
|
||||
'happy_summer' => __('Happy summer, %s!', $name).' 🌞',
|
||||
'happy_winter' => __('Happy winter, %s!', $name).' ⛄',
|
||||
'happy_autumn' => __('Happy autumn, %s!', $name).' 🍂',
|
||||
'happy_spring' => __('Happy spring, %s!', $name).' 🌻',
|
||||
];
|
||||
} else {
|
||||
$emojiOptions = [
|
||||
'have_good_day' => __('Have a good day').' ✌',
|
||||
'have_good_day' => __('Have a good day!').' ✌',
|
||||
'welcome_back' => __('Welcome back!').' 👋',
|
||||
'merry_christmas' => __('Welcome back!').' 🎅',
|
||||
'good_morning' => __('Good morning!').' ☕',
|
||||
'good_evening' => __('Good evening').' 🌇',
|
||||
'good_night' => __('Good night').' 🌕',
|
||||
'happy_summer' => __('Happy summer').' 🌞',
|
||||
'happy_winter' => __('Happy winter').' ⛄',
|
||||
'happy_autumn' => __('Happy autumn').' 🍂',
|
||||
'happy_spring' => __('Happy spring').' 🌻',
|
||||
'good_evening' => __('Good evening!').' 🌇',
|
||||
'good_night' => __('Good night!').' 🌕',
|
||||
'happy_summer' => __('Happy summer!').' 🌞',
|
||||
'happy_winter' => __('Happy winter!').' ⛄',
|
||||
'happy_autumn' => __('Happy autumn!').' 🍂',
|
||||
'happy_spring' => __('Happy spring!').' 🌻',
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -91,7 +91,7 @@ class Database extends Element
|
||||
$image_status = html_print_image('images/status_check@svg.svg', true);
|
||||
$text = html_print_div(
|
||||
[
|
||||
'content' => __('Everything’s OK!'),
|
||||
'content' => __('Everything\'s OK!'),
|
||||
'class' => 'status-text',
|
||||
],
|
||||
true
|
||||
|
@ -286,19 +286,19 @@ class Events extends Element
|
||||
foreach ($rows as $key => $row) {
|
||||
switch ($row['estado']) {
|
||||
case '2':
|
||||
$label = _('In process');
|
||||
$label = __('In process');
|
||||
break;
|
||||
|
||||
case '0':
|
||||
$label = _('New events');
|
||||
$label = __('New events');
|
||||
break;
|
||||
|
||||
case '3':
|
||||
$label = _('Not validated');
|
||||
$label = __('Not validated');
|
||||
break;
|
||||
|
||||
case '1':
|
||||
$label = _('Validated events');
|
||||
$label = __('Validated events');
|
||||
break;
|
||||
|
||||
default:
|
||||
|
@ -95,7 +95,7 @@ class LogStorage extends Element
|
||||
$image_status = html_print_image('images/status_check@svg.svg', true);
|
||||
$text = html_print_div(
|
||||
[
|
||||
'content' => __('Everything’s OK!'),
|
||||
'content' => __('Everything\'s OK!'),
|
||||
'class' => 'status-text',
|
||||
],
|
||||
true
|
||||
@ -114,7 +114,7 @@ class LogStorage extends Element
|
||||
$image_status = html_print_image('images/status_check@svg.svg', true);
|
||||
$text = html_print_div(
|
||||
[
|
||||
'content' => __('Everything’s OK!'),
|
||||
'content' => __('Everything\'s OK!'),
|
||||
'class' => 'status-text',
|
||||
],
|
||||
true
|
||||
|
@ -88,7 +88,7 @@ class NewsBoard extends Element
|
||||
</p>
|
||||
|
||||
<p>'.__('Our interface is user-friendly,').'
|
||||
<br>'.__("Customize your dashboard, it's easy.").'
|
||||
<br>'.__("Customize your dashboard, it's easy!").'
|
||||
<br>'.__('Set up alerts and gain insights so keen,').'
|
||||
<br>'.__("Optimize your data, like you've never seen.").'
|
||||
</p>
|
||||
|
@ -79,7 +79,7 @@ class Overview extends Element
|
||||
$image_status = html_print_image('images/status_check@svg.svg', true);
|
||||
$text = html_print_div(
|
||||
[
|
||||
'content' => __('Everything’s OK!'),
|
||||
'content' => __('Everything\'s OK!'),
|
||||
'class' => 'status-text',
|
||||
],
|
||||
true
|
||||
@ -122,7 +122,7 @@ class Overview extends Element
|
||||
$image_status = html_print_image('images/status_check@svg.svg', true);
|
||||
$text = html_print_div(
|
||||
[
|
||||
'content' => __('Everything’s OK!'),
|
||||
'content' => __('Everything\'s OK!'),
|
||||
'class' => 'status-text',
|
||||
],
|
||||
true
|
||||
|
@ -448,7 +448,7 @@ if (isset($config['id_user']) === false) {
|
||||
} else if (($config['auth'] === 'saml') && ($login_button_saml)) {
|
||||
$saml_user_id = enterprise_hook('saml_process_user_login');
|
||||
if (!$saml_user_id) {
|
||||
$config['auth_error'] = __('saml error');
|
||||
$config['auth_error'] = __('SAML error');
|
||||
$login_failed = true;
|
||||
include_once 'general/login_page.php';
|
||||
while (ob_get_length() > 0) {
|
||||
@ -1521,7 +1521,7 @@ echo html_print_input_hidden(
|
||||
// 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: '));
|
||||
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');
|
||||
|
@ -424,7 +424,7 @@ class User
|
||||
$options = [
|
||||
'name' => 'user',
|
||||
'value' => $this->user,
|
||||
'placeholder' => __('user'),
|
||||
'placeholder' => __('User'),
|
||||
// 'autofocus' => 'autofocus',
|
||||
// 'label' => __('User'),
|
||||
];
|
||||
@ -432,7 +432,7 @@ class User
|
||||
$options = [
|
||||
'name' => 'password',
|
||||
'value' => '',
|
||||
'placeholder' => __('password'),
|
||||
'placeholder' => __('Password'),
|
||||
// 'label' => __('Password'),
|
||||
'required' => 'required',
|
||||
];
|
||||
|
@ -258,7 +258,7 @@ class Agents
|
||||
$options = [
|
||||
'icon' => 'refresh',
|
||||
'icon_pos' => 'right',
|
||||
'text' => __('Apply Filter'),
|
||||
'text' => __('Apply filter'),
|
||||
];
|
||||
$ui->formAddSubmitButton($options);
|
||||
$html = $ui->getEndForm();
|
||||
|
@ -263,7 +263,7 @@ class Alerts
|
||||
$options = [
|
||||
'icon' => 'refresh',
|
||||
'icon_pos' => 'right',
|
||||
'text' => __('Apply Filter'),
|
||||
'text' => __('Apply filter'),
|
||||
];
|
||||
$ui->formAddSubmitButton($options);
|
||||
|
||||
|
@ -1046,7 +1046,7 @@ class Events
|
||||
$options = [
|
||||
'icon' => 'refresh',
|
||||
'icon_pos' => 'right',
|
||||
'text' => __('Apply Filter'),
|
||||
'text' => __('Apply filter'),
|
||||
];
|
||||
$ui->formAddSubmitButton($options);
|
||||
$html = $ui->getEndForm();
|
||||
|
@ -322,7 +322,7 @@ class Modules
|
||||
$options = [
|
||||
'icon' => 'refresh',
|
||||
'icon_pos' => 'right',
|
||||
'text' => __('Apply Filter'),
|
||||
'text' => __('Apply filter'),
|
||||
];
|
||||
$ui->formAddSubmitButton($options);
|
||||
$html = $ui->getEndForm();
|
||||
|
@ -257,12 +257,12 @@ $table->data[1][1] = html_print_label_input_block(
|
||||
);
|
||||
|
||||
$table->data[1][2] = html_print_label_input_block(
|
||||
__('Show alerts').ui_print_help_tip(__('the combined graph does not show the alerts into this graph'), true),
|
||||
__('Show alerts').ui_print_help_tip(__('The combined graph does not show the alerts into this graph'), true),
|
||||
html_print_checkbox('draw_alerts', 1, (bool) $draw_alerts, true)
|
||||
);
|
||||
|
||||
$graph_option_one_or_several = [
|
||||
0 => __('several graphs for each module'),
|
||||
0 => __('Several graphs for each module'),
|
||||
1 => __('One combined graph'),
|
||||
];
|
||||
|
||||
|
@ -962,7 +962,7 @@ $tableAdvancedFilter->data['advancedField_1'][0] = html_print_label_input_block(
|
||||
);
|
||||
|
||||
$tableAdvancedFilter->data['advancedField_1'][1] = html_print_label_input_block(
|
||||
__('Show monitors...'),
|
||||
__('Show monitors'),
|
||||
html_print_select(
|
||||
$monitor_options,
|
||||
'module_option',
|
||||
|
@ -1036,7 +1036,7 @@ function table_datatables(filters, indexed_descriptions, processing){
|
||||
return 0;
|
||||
}
|
||||
var dec_point = "<?php echo $config['csv_decimal_separator']; ?>";
|
||||
var thousands_separator = "<?php echo __(''); ?>";
|
||||
var thousands_separator = "<?php echo ''; ?>";
|
||||
data = js_csv_format_numeric(data ,dec_point, thousands_separator, countDecimals(data));
|
||||
}
|
||||
return data;
|
||||
|
@ -268,7 +268,7 @@ $output = '<div id="tabs-sound-modal" class="ui-widget-dialog-border">';
|
||||
]
|
||||
);
|
||||
$output .= '<span class="text-discovered-alerts">';
|
||||
$output .= __('Congrats! there’s nothing to show');
|
||||
$output .= __('Congrats! there\'s nothing to show');
|
||||
$output .= '</span>';
|
||||
$output .= '</div>';
|
||||
$output .= '<div class="elements-discovered-alerts" style="max-height:315px !important;"><ul></ul></div>';
|
||||
|
@ -690,7 +690,7 @@ if (empty($draw) === false) {
|
||||
html_print_div(
|
||||
[
|
||||
'id' => 'spinner',
|
||||
'content' => '<p class="loading-text">'.__('Loading netflow data, please wait...').'</p>'.$spinner,
|
||||
'content' => '<p class="loading-text">'.__('Loading netflow data, please wait').'</p>'.$spinner,
|
||||
'class' => 'invisible',
|
||||
'style' => 'position: initial;',
|
||||
]
|
||||
|
@ -610,7 +610,7 @@ $spinner = html_print_div(
|
||||
html_print_div(
|
||||
[
|
||||
'id' => 'spinner',
|
||||
'content' => '<p class="loading-text">'.__('Loading netflow data, please wait...').'</p>'.$spinner,
|
||||
'content' => '<p class="loading-text">'.__('Loading netflow data, please wait').'</p>'.$spinner,
|
||||
'class' => 'invisible',
|
||||
'style' => 'position: initial;',
|
||||
]
|
||||
|
@ -368,7 +368,7 @@ $spinner = html_print_div(
|
||||
html_print_div(
|
||||
[
|
||||
'id' => 'spinner',
|
||||
'content' => '<p class="loading-text">'.__('Loading netflow data, please wait...').'</p>'.$spinner,
|
||||
'content' => '<p class="loading-text">'.__('Loading netflow data, please wait').'</p>'.$spinner,
|
||||
'class' => 'invisible',
|
||||
'style' => 'position: initial;',
|
||||
]
|
||||
|
@ -922,12 +922,12 @@ $left_content .= '
|
||||
';
|
||||
|
||||
$intervals = [];
|
||||
$intervals[SECONDS_1HOUR] = _('Last ').human_time_description_raw(SECONDS_1HOUR, true, 'large');
|
||||
$intervals[SECONDS_6HOURS] = _('Last ').human_time_description_raw(SECONDS_6HOURS, true, 'large');
|
||||
$intervals[SECONDS_12HOURS] = _('Last ').human_time_description_raw(SECONDS_12HOURS, true, 'large');
|
||||
$intervals[SECONDS_1DAY] = _('Last ').human_time_description_raw(SECONDS_1DAY, true, 'large');
|
||||
$intervals[SECONDS_2DAY] = _('Last ').human_time_description_raw(SECONDS_2DAY, true, 'large');
|
||||
$intervals[SECONDS_1WEEK] = _('Last ').human_time_description_raw(SECONDS_1WEEK, true, 'large');
|
||||
$intervals[SECONDS_1HOUR] = __('Last').' '.human_time_description_raw(SECONDS_1HOUR, true, 'large');
|
||||
$intervals[SECONDS_6HOURS] = __('Last').' '.human_time_description_raw(SECONDS_6HOURS, true, 'large');
|
||||
$intervals[SECONDS_12HOURS] = __('Last').' '.human_time_description_raw(SECONDS_12HOURS, true, 'large');
|
||||
$intervals[SECONDS_1DAY] = __('Last').' '.human_time_description_raw(SECONDS_1DAY, true, 'large');
|
||||
$intervals[SECONDS_2DAY] = __('Last').' '.human_time_description_raw(SECONDS_2DAY, true, 'large');
|
||||
$intervals[SECONDS_1WEEK] = __('Last').' '.human_time_description_raw(SECONDS_1WEEK, true, 'large');
|
||||
|
||||
$right_content .= '<div class="interval-div">'.html_print_select(
|
||||
$intervals,
|
||||
|
@ -138,7 +138,7 @@ $header_title = __('Tree view');
|
||||
$header_sub_title = __('Sort the agents by %s');
|
||||
switch ($tab) {
|
||||
case 'tag':
|
||||
$header_sub_title = sprintf($header_sub_title, __('tags'));
|
||||
$header_sub_title = sprintf($header_sub_title, __('Tags'));
|
||||
break;
|
||||
|
||||
case 'os':
|
||||
@ -146,20 +146,20 @@ switch ($tab) {
|
||||
break;
|
||||
|
||||
case 'group':
|
||||
$header_sub_title = sprintf($header_sub_title, __('groups'));
|
||||
$header_sub_title = sprintf($header_sub_title, __('Groups'));
|
||||
break;
|
||||
|
||||
case 'module_group':
|
||||
$header_sub_title = sprintf($header_sub_title, __('module groups'));
|
||||
$header_sub_title = sprintf($header_sub_title, __('Module groups'));
|
||||
break;
|
||||
|
||||
case 'module':
|
||||
$header_sub_title = sprintf($header_sub_title, __('modules'));
|
||||
$header_sub_title = sprintf($header_sub_title, __('Modules'));
|
||||
break;
|
||||
|
||||
case 'policies':
|
||||
if ($enterpriseEnable) {
|
||||
$header_sub_title = sprintf($header_sub_title, __('policies'));
|
||||
$header_sub_title = sprintf($header_sub_title, __('Policies'));
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
@ -639,7 +639,7 @@ $skin = '';
|
||||
}
|
||||
}
|
||||
|
||||
$autorefresh_show = '<p class="edit_user_labels">'._('Autorefresh').ui_print_help_tip(
|
||||
$autorefresh_show = '<p class="edit_user_labels">'.__('Autorefresh').ui_print_help_tip(
|
||||
__('This will activate autorefresh in selected pages'),
|
||||
true
|
||||
).'</p>';
|
||||
@ -840,12 +840,12 @@ $skin = '';
|
||||
|
||||
// Title.
|
||||
$row = [];
|
||||
$row['control'] = '<p class="edit_user_labels">'.__('eHorus user configuration').': </p>';
|
||||
$row['control'] = '<p class="edit_user_labels">'.__('Ehorus user configuration').': </p>';
|
||||
$table_remote->data['ehorus_user_level_conf'] = $row;
|
||||
|
||||
// Enable/disable eHorus for this user.
|
||||
// Enable/disable Ehorus for this user.
|
||||
$row = [];
|
||||
$row['name'] = __('eHorus user acces enabled');
|
||||
$row['name'] = __('Ehorus user access enabled');
|
||||
$row['control'] = html_print_checkbox_switch('ehorus_user_level_enabled', 1, $user_info['ehorus_user_level_enabled'], true);
|
||||
$table_remote->data['ehorus_user_level_enabled'] = $row;
|
||||
|
||||
|
@ -948,18 +948,15 @@ if ($edit_capable === true) {
|
||||
var maintenanceMode = visualConsoleManager.visualConsole.props.maintenanceMode;
|
||||
var msg = '';
|
||||
if(maintenanceMode == null) {
|
||||
msg = '<?php echo __('Are you sure you wish to set the visual console in maintenance mode'); ?>';
|
||||
msg += '?';
|
||||
msg = '<?php echo __('Are you sure you wish to set the visual console in maintenance mode?'); ?>';
|
||||
} else if (maintenanceMode.user === '<?php echo $config['id_user']; ?>') {
|
||||
msg += '<?php echo __('Are you sure you wish to disable maintenance mode'); ?>';
|
||||
msg += '?';
|
||||
msg += '<?php echo __('Are you sure you wish to disable maintenance mode?'); ?>';
|
||||
} else {
|
||||
msg = '<?php echo __('The visual console was set to maintenance mode'); ?>';
|
||||
msg += ' ' + '<span title="'+maintenanceMode.date+'">' + maintenanceMode.timestamp + '</span>';
|
||||
msg += ' ' + '<?php echo __('ago by user'); ?>';
|
||||
msg += ' ' + maintenanceMode.user;
|
||||
msg += '. ' + '<?php echo __('Are you sure you wish to disable maintenance mode'); ?>';
|
||||
msg += '?';
|
||||
msg += '. ' + '<?php echo __('Are you sure you wish to disable maintenance mode?'); ?>';
|
||||
}
|
||||
|
||||
confirmDialog({
|
||||
@ -1129,7 +1126,7 @@ if ($edit_capable === true) {
|
||||
$('#button-button_delete').click(function (event){
|
||||
confirmDialog({
|
||||
title: "<?php echo __('Delete'); ?>",
|
||||
message: "<?php echo __('Are you sure'); ?>"+"?",
|
||||
message: "<?php echo __('Are you sure?'); ?>",
|
||||
onAccept: function() {
|
||||
visualConsoleManager.visualConsole.elements.forEach(item => {
|
||||
if (item.meta.isSelected === true) {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user