fix errors in translations pandora_enterprise#13668

This commit is contained in:
daniel 2024-05-15 14:08:44 +02:00
parent e28dc6fb35
commit d9cd306ab8
103 changed files with 465908 additions and 506763 deletions

View File

@ -162,12 +162,12 @@ function extension_db_status_execute_checks($db_user, $db_password, $db_host, $d
$db_name = $db_name[0]; $db_name = $db_name[0];
if (!$db_host) { if (!$db_host) {
ui_print_error_message(__('A host must be provided')); ui_print_error_message(__('Host must be provided'));
return; return;
} }
if (!$db_name) { if (!$db_name) {
ui_print_error_message(__('A DB name must be provided')); ui_print_error_message(__('DB name must be provided'));
return; return;
} }

View File

@ -48,7 +48,7 @@ if (is_ajax()) {
echo "<ul class='tooltip_counters'><h3>".__('Counters Module').'</h3>'; 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_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_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_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_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>'; echo "<li><div style='background-color: ".COL_MAINTENANCE.";'></div>".__('Not_init').': '.$send_tooltip['notInit_module_count'].'</li></ul>';

View File

@ -27,12 +27,12 @@ $button = '';
if (check_acl($config['id_user'], 0, 'RW') || check_acl($config['id_user'], 0, 'RM')) { 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'; $url_new = 'index.php?sec=reporting&sec2=godmode/reporting/graph_builder';
$button = '<form action="'.$url_new.'" method="post"> $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>'; </form>';
} }
echo ui_print_empty_view( echo ui_print_empty_view(
__('Create custom graph'), __('Create custom graphs'),
$msg, $msg,
'custom-graph.svg', 'custom-graph.svg',
$button $button

View File

@ -396,7 +396,7 @@ echo sprintf('<div id="header_table" class="header_table_%s">', $menuTypeClass);
<div id="msg-header" class="invisible"></div> <div id="msg-header" class="invisible"></div>
<a href="https://pandorafms.com/manual" target="_blank">'.__('Pandora documentation').'</a>'; <a href="https://pandorafms.com/manual" target="_blank">'.__('Pandora documentation').'</a>';
if (enterprise_installed() === true) { if (enterprise_installed() === true) {
$modal_box .= '<a href="https://support.pandorafms.com/" target="_blank">'.__('Enterprise support ').'</a>'; $modal_box .= '<a href="https://support.pandorafms.com/" target="_blank">'.__('Enterprise support').' </a>';
$modal_box .= '<a href="#" id="feedback-header">'.__('Give us feedback').'</a>'; $modal_box .= '<a href="#" id="feedback-header">'.__('Give us feedback').'</a>';
} else { } else {
$modal_box .= '<a href="https://pandorafms.com/community/forums/" target="_blank">'.__('Community Support').'</a>'; $modal_box .= '<a href="https://pandorafms.com/community/forums/" target="_blank">'.__('Community Support').'</a>';

View File

@ -129,7 +129,7 @@ $table->data[2][0] = html_print_label_input_block(
); );
$table->data[2][1] = 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( '<div class="flex mrgn_top_5px">'.__('Yes').' '.html_print_radio_button_extended(
'update_gis_data', 'update_gis_data',
0, 0,

View File

@ -1388,7 +1388,7 @@ ui_require_jquery_file('bgiframe');
confirmDialog({ confirmDialog({
title: "<?php echo __('Delete agent'); ?>", 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() { onAccept: function() {
window.location.assign('index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&borrar_agente='+$idAgente); window.location.assign('index.php?sec=gagente&sec2=godmode/agentes/modificar_agente&borrar_agente='+$idAgente);
} }

View File

@ -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( $table_simple->data['ignore_unknown'][0] = html_print_checkbox_switch(
'ignore_unknown', 'ignore_unknown',
1, 1,

View File

@ -300,7 +300,7 @@ $(document).ready (function () {
}, },
messages: { messages: {
id_agent_module: { valueNotEquals: "<?php echo __('Please select an item'); ?>!"}, 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'); ?>!"}, id_agent: { valueNotEquals: "<?php echo __('Please select an agent'); ?>!"},
} }
}); });

View File

@ -682,14 +682,14 @@ switch ($action) {
case 'edit_map': case 'edit_map':
case 'update_saved': case 'update_saved':
if (empty($invalidFields) === true) { 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 { } 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; break;
case 'new_map': 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; break;
default: default:

View File

@ -1175,14 +1175,14 @@ if ($config['activate_gis']) {
); );
$table->data[4][0] = html_print_label_input_block( $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>' '<div class="flex-row-center">'.$ignore_gis.'</div>'
); );
} }
$table->data[5][0] = html_print_label_input_block( $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'), __('The agent still runs but the alerts and events will be stop'),
true true
), ),
@ -1232,7 +1232,7 @@ $table->data[5][1] = html_print_label_input_block(
); );
$table->data[6][0] = 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( html_print_select(
[ [
'' => __('No change'), '' => __('No change'),

View File

@ -1545,7 +1545,7 @@ $table->data[40][0] = html_print_label_input_block(
); );
$table->data[40][1] = 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( html_print_select(
[ [
'' => __('No change'), '' => __('No change'),

View File

@ -380,7 +380,7 @@ $modules_select = html_print_select(
false false
); );
$row[] = '<b>'._('Modules').'</b>'; $row[] = '<b>'.__('Modules').'</b>';
$row[] = $modules_select; $row[] = $modules_select;
$table->rowstyle['agents-modules-row'] = 'vertical-align: top; display: none'; $table->rowstyle['agents-modules-row'] = 'vertical-align: top; display: none';

View File

@ -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/visual_console/render_view'] = 'Visual console';
$autorefresh_list_out['operation/events/events'] = 'Events'; $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'), __('This will activate autorefresh in selected pages'),
true true
).'</p>'; ).'</p>';

View File

@ -509,7 +509,7 @@ if ($option === 'edit_agents' || $option === 'edit_modules') {
global $SelectAction; global $SelectAction;
$SelectAction = '<form id="form_necesario" method="post" id="form_options" action="'.$url.'">'; $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( $SelectAction .= html_print_select(
$options, $options,
'option', 'option',

View File

@ -174,7 +174,7 @@ $table->data[2][] = html_print_label_input_block(
100, 100,
true true
).ui_print_input_placeholder( ).ui_print_input_placeholder(
__('separate fields with ').SEPARATOR_COLUMN, __('Separate fields with').' '.SEPARATOR_COLUMN,
true true
) )
); );

View File

@ -182,7 +182,7 @@ $table->data[3][0] = html_print_label_input_block(
).$dynamic_interval_img.'</div>' ).$dynamic_interval_img.'</div>'
); );
$table->data[3][2] = '<span><em>'.__('Dynamic Min. ').'</em>'; $table->data[3][2] = '<span><em>'.__('Dynamic Min.').' </em>';
$table->data[3][2] .= html_print_input_text('dynamic_min', $dynamic_min, '', 10, 255, true); $table->data[3][2] .= html_print_input_text('dynamic_min', $dynamic_min, '', 10, 255, true);
$table->data[3][2] .= '<br /><em>'.__('Dynamic Max.').'</em>'; $table->data[3][2] .= '<br /><em>'.__('Dynamic Max.').'</em>';
$table->data[3][2] .= html_print_input_text('dynamic_max', $dynamic_max, '', 10, 255, true); $table->data[3][2] .= html_print_input_text('dynamic_max', $dynamic_max, '', 10, 255, 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( $table->data[3][1] = html_print_label_input_block(
'', '',
'<div class="inline_flex align-center">'.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'), html_print_input_text('dynamic_min', $dynamic_min, '', 10, 255, true, false, false, '', 'w100p mrgn_top_10px'),
[ [
'label_class' => 'font-title-font', 'label_class' => 'font-title-font',
'div_class' => 'mrgn_right_10px', 'div_class' => 'mrgn_right_10px',
] ]
).html_print_label_input_block( ).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'), html_print_input_text('dynamic_max', $dynamic_max, '', 10, 255, true, false, false, '', 'w100p mrgn_top_10px'),
[ [
'label_class' => 'font-title-font', 'label_class' => 'font-title-font',

View File

@ -142,7 +142,7 @@ if (isset($_GET['create']) || isset($_GET['update'])) {
// Will return either 0 (in case of error) or an int // Will return either 0 (in case of error) or an int
} }
} else { } 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) { } else if ($id_np > 0) {
// Profile exists // Profile exists

View File

@ -687,10 +687,6 @@ if ($display_loading === true || $running_create === true || $running_delete ===
} }
$(document).ready (function () { $(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(); $("#table-adv").hide();
$('#checkbox-toggle_adv_opts').change(function() { $('#checkbox-toggle_adv_opts').change(function() {

View File

@ -246,7 +246,7 @@ if ($config['history_db_enabled'] == 1) {
true true
).' '.__('ago').'.'; ).' '.__('ago').'.';
} else { } else {
$table_status->data[1][0] .= __('not executed'); $table_status->data[1][0] .= __('Not executed');
} }
} }

View File

@ -228,7 +228,7 @@ $row['publicUrl'] = html_print_label_input_block(
); );
$row['agentsSync'] = 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'), __('Number of agents that will synchronize at the same time, minimum 10 max 1000'),
true true
), ),

View File

@ -505,7 +505,7 @@ $ldap_rows = [];
// Method. // Method.
$auth_methods = [ $auth_methods = [
'mysql' => __('Local %s', get_product_name()), 'mysql' => __('Local %s', get_product_name()),
'ldap' => __('ldap'), 'ldap' => __('LDAP'),
]; ];
if (enterprise_installed() === true) { if (enterprise_installed() === true) {
add_enterprise_auth_methods($auth_methods); add_enterprise_auth_methods($auth_methods);

View File

@ -405,7 +405,7 @@ $table->data[$i][] = html_print_label_input_block(
); );
$table->data[$i++][] = html_print_label_input_block( $table->data[$i++][] = html_print_label_input_block(
__('Enable Feedback').ui_print_help_tip(__(' It enables the \'give feedback\' window in the help menu at the top right.'), true), __('Enable Feedback').ui_print_help_tip(__('It enables the \'give feedback\' window in the help menu at the top right.'), true),
html_print_checkbox_switch_extended( html_print_checkbox_switch_extended(
'activate_feedback', 'activate_feedback',
true, true,
@ -557,7 +557,7 @@ $table->data[$i][] = html_print_label_input_block(
) )
); );
$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( html_print_checkbox_switch(
'referer_security', 'referer_security',
1, 1,
@ -720,7 +720,7 @@ $table->data[$i++][] = html_print_label_input_block(
); );
$help_tip = ui_print_help_tip( $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 true
); );

View File

@ -2398,7 +2398,7 @@ $(document).ready (function () {
$("#button-interval_del_btn").click( function() { $("#button-interval_del_btn").click( function() {
confirmDialog({ confirmDialog({
title: "<?php echo __('Delete interval'); ?>", 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() { onAccept: function() {
var interval_selected = $('#intervals option:selected').val(); var interval_selected = $('#intervals option:selected').val();
$('#hidden-interval_to_delete').val(interval_selected); $('#hidden-interval_to_delete').val(interval_selected);

View File

@ -400,7 +400,7 @@ if ($create_user === true) {
// Previously defined. // Previously defined.
$values['autorefresh_white_list'] = $autorefresh_white_list; $values['autorefresh_white_list'] = $autorefresh_white_list;
// eHorus user level conf. // Ehorus user level conf.
if ((bool) $config['ehorus_user_level_conf'] === true) { if ((bool) $config['ehorus_user_level_conf'] === true) {
$values['ehorus_user_level_enabled'] = (bool) get_parameter('ehorus_user_level_enabled', false); $values['ehorus_user_level_enabled'] = (bool) get_parameter('ehorus_user_level_enabled', false);
if ($values['ehorus_user_level_enabled'] === true) { if ($values['ehorus_user_level_enabled'] === true) {
@ -1417,7 +1417,7 @@ $default_event_filter .= html_print_select(
).'</div>'; ).'</div>';
if (isset($config['ehorus_user_level_conf']) === true && (bool) $config['ehorus_user_level_conf'] === true) { 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 .= html_print_checkbox_switch(
'ehorus_user_level_enabled', 'ehorus_user_level_enabled',
1, 1,
@ -1425,7 +1425,7 @@ if (isset($config['ehorus_user_level_conf']) === true && (bool) $config['ehorus_
true true
).'</div>'; ).'</div>';
$ehorus .= '<div class="user_edit_ehorus_outer">'; $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 .= html_print_input_text(
'ehorus_user_level_user', 'ehorus_user_level_user',
$user_info['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, 45,
true true
).'</div>'; ).'</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 .= html_print_input_password(
'ehorus_user_level_pass', 'ehorus_user_level_pass',
io_output_password($user_info['ehorus_user_level_pass']), io_output_password($user_info['ehorus_user_level_pass']),

View File

@ -1178,7 +1178,7 @@ class DiscoveryTaskList extends HTML
} }
if (empty($table->data)) { 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; $return = false;
} else { } else {
$content = html_print_table($table, true); $content = html_print_table($table, true);
@ -1327,7 +1327,7 @@ class DiscoveryTaskList extends HTML
{ {
$result = '<div class="flex">'; $result = '<div class="flex">';
$result .= '<div class="subtitle">'; $result .= '<div class="subtitle">';
$result .= '<span>'._('Overall Progress').'</span>'; $result .= '<span>'.__('Overall Progress').'</span>';
$result .= '<div class="mrgn_top_25px">'; $result .= '<div class="mrgn_top_25px">';
$result .= progress_circular_bar( $result .= progress_circular_bar(
$task['id_rt'], $task['id_rt'],

View File

@ -267,7 +267,7 @@ class ManageExtensions extends HTML
], ],
[ [
'link' => '', 'link' => '',
'label' => _('Manage disco packages'), 'label' => __('Manage disco packages'),
'selected' => 1, 'selected' => 1,
], ],
] ]

View File

@ -907,7 +907,7 @@ if (check_login()) {
if ($id_filter == -1) { if ($id_filter == -1) {
$result_array['error'] = 1; $result_array['error'] = 1;
$result_array['msg'] = ui_print_error_message( $result_array['msg'] = ui_print_error_message(
__('please, select a filter'), __('Please, select a filter'),
'', '',
true true
); );
@ -923,7 +923,7 @@ if (check_login()) {
if ($filters['id_custom_fields'] == '') { if ($filters['id_custom_fields'] == '') {
$result_array['error'] = 1; $result_array['error'] = 1;
$result_array['msg'] = ui_print_error_message( $result_array['msg'] = ui_print_error_message(
__('please, select a custom field'), __('Please, select a custom field'),
'', '',
true true
); );
@ -980,7 +980,7 @@ if (check_login()) {
if ($id_filter == -1) { if ($id_filter == -1) {
$result_array['error'] = 1; $result_array['error'] = 1;
$result_array['msg'] = ui_print_error_message( $result_array['msg'] = ui_print_error_message(
__('please, select a filter'), __('Please, select a filter'),
'', '',
true true
); );

View File

@ -206,10 +206,7 @@ if ($get_double_auth_info_page) {
$html .= '<div class="left_align">'; $html .= '<div class="left_align">';
$html .= '<p>'; $html .= '<p>';
$html .= __('You are about to activate the double authentication').'. '; $html .= __('You are about to activate the double authentication').'. ';
$html .= __( $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').'. ';
'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 .= '<p>'; $html .= '<p>';
$html .= __('You will need to install the app from the following link before continue').'. '; $html .= __('You will need to install the app from the following link before continue').'. ';

View File

@ -2548,7 +2548,7 @@ if ($drawConsoleSound === true) {
] ]
); );
$output .= '<span class="text-discovered-alerts">'; $output .= '<span class="text-discovered-alerts">';
$output .= __('Congrats! theres nothing to show'); $output .= __('Congrats! there\'s nothing to show');
$output .= '</span>'; $output .= '</span>';
$output .= '</div>'; $output .= '</div>';
$output .= '<div class="elements-discovered-alerts"><ul></ul></div>'; $output .= '<div class="elements-discovered-alerts"><ul></ul></div>';

View File

@ -339,11 +339,7 @@ function process_user_login_remote($login, $pass, $api=false)
// The user does not exist and can not be created. // The user does not exist and can not be created.
if ($config['autocreate_remote_users'] == 0 || is_user_blacklisted($login)) { if ($config['autocreate_remote_users'] == 0 || is_user_blacklisted($login)) {
$config['auth_error'] = __( $config['auth_error'] = __('Ooops User not found in database or incorrect password');
'Ooops User not found in
database or incorrect password'
);
return false; return false;
} }

View File

@ -376,7 +376,7 @@ class AgentDeployWizard
$instructions_url = 'https://pandorafms.com/manual/en/documentation/pandorafms/installation/05_configuration_agents'; $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( $more_info_link = html_print_div(
[ [

View File

@ -953,10 +953,7 @@ class CalendarManager
if ($specialDay->save() === true) { if ($specialDay->save() === true) {
$success = true; $success = true;
} else { } else {
$reason = \__( $reason = \__('Failed saving special day: %s', $config['dbconnection']->error);
'Failed saving special day: ',
$config['dbconnection']->error
);
} }
} }
} catch (\Exception $e) { } catch (\Exception $e) {

View File

@ -1907,7 +1907,7 @@ class ConsoleSupervisor
$this->notify( $this->notify(
[ [
'type' => 'NOTIF.PHP.CHROMIUM', '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:'), '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, 'url' => $url,
'icon_notification' => self::ICON_HEADSUP, 'icon_notification' => self::ICON_HEADSUP,
@ -1970,7 +1970,7 @@ class ConsoleSupervisor
[ [
'type' => 'NOTIF.PHP.VERSION.SUPPORT', 'type' => 'NOTIF.PHP.VERSION.SUPPORT',
'title' => __('PHP UPDATE REQUIRED'), '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, 'url' => $url,
'icon_notification' => self::ICON_HEADSUP, 'icon_notification' => self::ICON_HEADSUP,
] ]
@ -2016,7 +2016,7 @@ class ConsoleSupervisor
[ [
'type' => 'NOTIF.MYSQL.VERSION', 'type' => 'NOTIF.MYSQL.VERSION',
'title' => __('MYSQL UPDATE REQUIRED'), '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, 'url' => $url,
'icon_notification' => self::ICON_HEADSUP, 'icon_notification' => self::ICON_HEADSUP,
] ]

View File

@ -751,7 +751,7 @@ class CredentialStore extends Wizard
$identifier = get_parameter('identifier', null); $identifier = get_parameter('identifier', null);
if (empty($identifier)) { if (empty($identifier)) {
$this->ajaxMsg('error', __('identifier cannot be empty'), true); $this->ajaxMsg('error', __('Identifier cannot be empty'), true);
} }
if (self::getKey($identifier) === false) { if (self::getKey($identifier) === false) {

View File

@ -495,7 +495,7 @@ class EventSound extends HTML
$('#file-sound').change(function(){ $('#file-sound').change(function(){
var ext = $('#file-sound').val().split('.').pop().toLowerCase(); var ext = $('#file-sound').val().split('.').pop().toLowerCase();
if($.inArray(ext, ['wav']) == -1) { if($.inArray(ext, ['wav']) == -1) {
alert('<?php __('invalid extension'); ?>'); alert('<?php __('Invalid extension'); ?>');
$('#file-sound').val(''); $('#file-sound').val('');
} }
}); });

View File

@ -3120,7 +3120,7 @@ class NetworkMap
html_print_input_text( html_print_input_text(
'edit_name_node', 'edit_name_node',
'', '',
__('name node'), __('Name node'),
'20', '20',
'50', '50',
true true
@ -3132,7 +3132,7 @@ class NetworkMap
html_print_input_text( html_print_input_text(
'edit_name_fictional_node', 'edit_name_fictional_node',
'', '',
__('name fictional node'), __('Name fictional node'),
'20', '20',
'50', '50',
true true
@ -3502,7 +3502,7 @@ class NetworkMap
html_print_input_text( html_print_input_text(
'name_fictional_node', 'name_fictional_node',
'', '',
__('name fictional node'), __('Name fictional node'),
'20', '20',
'50', '50',
true true

View File

@ -427,7 +427,7 @@ class OrderInterpreter extends Wizard
echo '</ul>'; echo '</ul>';
if ($iterator > 10) { if ($iterator > 10) {
echo '<div class="more_results"><span class=""> echo '<div class="more_results"><span class="">
+ '.$more_results.' '.__('results found').'</span></div>'; + '.$more_results.' '.__('Results found').'</span></div>';
} }
if ($iterator === 0) { if ($iterator === 0) {

View File

@ -598,7 +598,7 @@ class SatelliteAgent extends HTML
if ($this->parseSatelliteConf('save', $values) === false) { if ($this->parseSatelliteConf('save', $values) === false) {
$this->ajaxMsg('error', __('Error saving agent')); $this->ajaxMsg('error', __('Error saving agent'));
} else { } else {
$this->ajaxMsg('result', _('Host '.$values['addres'].' added.')); $this->ajaxMsg('result', __('Host %s added.', $values['addres']));
} }
exit; exit;
@ -640,8 +640,8 @@ class SatelliteAgent extends HTML
$this->ajaxMsg( $this->ajaxMsg(
'result', 'result',
($values['delete'] === '0') ($values['delete'] === '0')
? _('Host '.$values['address'].' deleted.') ? __('Host %s deleted.', $values['address'])
: _('Host '.$values['address'].' added.'), : __('Host %s added.', $values['address']),
true true
); );
} }
@ -685,8 +685,8 @@ class SatelliteAgent extends HTML
$this->ajaxMsg( $this->ajaxMsg(
'result', 'result',
($values['disable'] === '0') ($values['disable'] === '0')
? _('Host '.$values['address'].' disabled.') ? __('Host %s disabled.', $values['address'])
: _('Host '.$values['address'].' enabled.'), : __('Host %s enabled.', $values['address']),
false, false,
true true
); );

View File

@ -305,7 +305,7 @@ class SatelliteCollection extends HTML
if ($this->parseSatelliteConf('add', $short_name) === false) { if ($this->parseSatelliteConf('add', $short_name) === false) {
$this->ajaxMsg('error', __('Error adding collection')); $this->ajaxMsg('error', __('Error adding collection'));
} else { } else {
$this->ajaxMsg('result', _('Collection '.$short_name.' added.')); $this->ajaxMsg('result', __('Collection %s added.', $short_name));
} }
exit; exit;
@ -324,7 +324,7 @@ class SatelliteCollection extends HTML
if ($this->parseSatelliteConf('delete', $short_name) === false) { if ($this->parseSatelliteConf('delete', $short_name) === false) {
$this->ajaxMsg('error', __('Error deleting collection')); $this->ajaxMsg('error', __('Error deleting collection'));
} else { } else {
$this->ajaxMsg('result', _('Collection '.$short_name.' deleted.')); $this->ajaxMsg('result', __('Collection %s deleted.', $short_name));
} }
exit; exit;

View File

@ -447,7 +447,7 @@ class WelcomeWindow extends Wizard
'direct' => 1, 'direct' => 1,
'block_content' => [ 'block_content' => [
[ [
'label' => __('This is your post-installation status diagnostic:'), 'label' => __('This is your post-installation status diagnostic'),
'arguments' => [ 'arguments' => [
'class' => 'first_lbl', 'class' => 'first_lbl',
'name' => 'lbl_diagnosis', 'name' => 'lbl_diagnosis',
@ -599,8 +599,8 @@ class WelcomeWindow extends Wizard
'content' => ' 'content' => '
<h2>'.__('Hi!').'</h2> <h2>'.__('Hi!').'</h2>
<p class="mrgn_btn_5px">'.__('It seems you are new to Pandora FMS.').'<br /> <p class="mrgn_btn_5px">'.__('It seems you are new to Pandora FMS.').'<br />
'.__('If you want to watch videos on how to use Pandora FMS, you can visit our ').'<a href="https://www.youtube.com/@PandoraFMS" target="_blank"><b>'.__('YouTube channel.').'</b></a></p> '.__('If you want to watch videos on how to use Pandora FMS, you can visit our').' <a href="https://www.youtube.com/@PandoraFMS" target="_blank"><b>'.__('YouTube channel.').'</b></a></p>
<p class="mrgn_top_5px">'.__('Are you familiar with ').'<a href="https://pandorafms.com/es/producto/elearning/" target="_blank"><b>'.__('our eLearning system?').'</b></a>'.__(' It\'s completely free for PAO (Operation) and PAT (Administration) courses. Learn how to use Pandora FMS at your own pace.').'</p>', <p class="mrgn_top_5px">'.__('Are you familiar with').' <a href="https://pandorafms.com/es/producto/elearning/" target="_blank"><b>'.__('our eLearning system?').'</b></a>'.__(' It\'s completely free for PAO (Operation) and PAT (Administration) courses. Learn how to use Pandora FMS at your own pace.').'</p>',
], ],
true true
); );
@ -658,7 +658,7 @@ class WelcomeWindow extends Wizard
], ],
[ [
'arguments' => [ 'arguments' => [
'label' => __('Let&apos;s do it!'), 'label' => __('Let\'s do it!'),
'type' => 'button', 'type' => 'button',
'attributes' => [ 'attributes' => [
'class' => 'secondary', 'class' => 'secondary',

View File

@ -4210,7 +4210,7 @@ function series_type_graph_array($data, $show_elements_graph)
$config['csv_decimal_separator'], $config['csv_decimal_separator'],
$config['csv_decimal_separator'] == ',' ? '.' : ',' $config['csv_decimal_separator'] == ',' ? '.' : ','
) )
).' '.$value['unit'].'</span>&nbsp;<span class="legend-font-small">'._('Avg.').' </span><span class="bolder">'.remove_right_zeros( ).' '.$value['unit'].'</span>&nbsp;<span class="legend-font-small">'.__('Avg.').' </span><span class="bolder">'.remove_right_zeros(
number_format( number_format(
$value['avg'], $value['avg'],
$config['graph_precision'], $config['graph_precision'],
@ -4280,7 +4280,7 @@ function series_type_graph_array($data, $show_elements_graph)
$config['thousand_separator'] $config['thousand_separator']
) )
).' '.$value['unit']; ).' '.$value['unit'];
$data_return['legend'][$key] .= '</span>&nbsp;<span class="legend-font-small">'._('Avg:').' </span><span class="bolder">'; $data_return['legend'][$key] .= '</span>&nbsp;<span class="legend-font-small">'.__('Avg:').' </span><span class="bolder">';
$data_return['legend'][$key] .= remove_right_zeros( $data_return['legend'][$key] .= remove_right_zeros(
number_format( number_format(
$value['avg'], $value['avg'],

View File

@ -14599,7 +14599,7 @@ function api_get_module_graph($id_module, $thrash2, $other, $thrash4)
} }
if (is_nan($graph_seconds) || $graph_seconds <= 0) { if (is_nan($graph_seconds) || $graph_seconds <= 0) {
// returnError('error_module_graph', __('')); // returnError('error_module_graph', '');
return; return;
} }

View File

@ -359,31 +359,31 @@ function config_update_config()
} }
if (config_update_value('identification_reminder', get_parameter('identification_reminder'), true) === false) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { if (config_update_value('console_log_enabled', get_parameter('console_log_enabled'), true) === false) {
@ -1908,35 +1908,35 @@ function config_update_config()
case 'pandorarc': case 'pandorarc':
if (config_update_value('ehorus_enabled', (int) get_parameter('ehorus_enabled', 0), true) === false) { 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) { 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) { 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) { 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) { 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) { 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) { 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) { 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; break;

View File

@ -6008,7 +6008,7 @@ function get_row_response_action(
$output .= __('Event # %d', $event_response['event_id']); $output .= __('Event # %d', $event_response['event_id']);
if (empty($command_str) === false) { if (empty($command_str) === false) {
$output .= ' '; $output .= ' ';
$output .= __('Executing command: '); $output .= __('Executing command').': ';
} }
$output .= '</b>'; $output .= '</b>';

View File

@ -8185,7 +8185,7 @@ function reporting_sql_auxiliary($report, $content, $pdf=false)
} }
} else { } else {
$return['correct'] = 0; $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; return $return;

View File

@ -5395,43 +5395,43 @@ function reporting_html_availability($table, $item, $pdf=0)
if ($item['fields']['total_time']) { if ($item['fields']['total_time']) {
$table1->head[2] = __('Total time'); $table1->head[2] = __('Total time');
} else { } else {
$table1->head[2] = __(''); $table1->head[2] = '';
} }
if ($item['fields']['time_failed']) { if ($item['fields']['time_failed']) {
$table1->head[3] = __('Time failed'); $table1->head[3] = __('Time failed');
} else { } else {
$table1->head[3] = __(''); $table1->head[3] = '';
} }
if ($item['fields']['time_in_ok_status']) { if ($item['fields']['time_in_ok_status']) {
$table1->head[4] = __('Time OK'); $table1->head[4] = __('Time OK');
} else { } else {
$table1->head[4] = __(''); $table1->head[4] = '';
} }
if ($item['fields']['time_in_warning_status']) { if ($item['fields']['time_in_warning_status']) {
$table1->head[5] = __('Time in warning status'); $table1->head[5] = __('Time in warning status');
} else { } else {
$table1->head[5] = __(''); $table1->head[5] = '';
} }
if ($item['fields']['time_in_unknown_status']) { if ($item['fields']['time_in_unknown_status']) {
$table1->head[6] = __('Time Unknown'); $table1->head[6] = __('Time Unknown');
} else { } else {
$table1->head[6] = __(''); $table1->head[6] = '';
} }
if ($item['fields']['time_of_not_initialized_module']) { if ($item['fields']['time_of_not_initialized_module']) {
$table1->head[7] = __('Time Not Init Module'); $table1->head[7] = __('Time Not Init Module');
} else { } else {
$table1->head[7] = __(''); $table1->head[7] = '';
} }
if ($item['fields']['time_of_downtime']) { if ($item['fields']['time_of_downtime']) {
$table1->head[8] = __('Time Downtime'); $table1->head[8] = __('Time Downtime');
} else { } else {
$table1->head[8] = __(''); $table1->head[8] = '';
} }
$table1->head[9] = __('% Ok'); $table1->head[9] = __('% Ok');
@ -5489,31 +5489,31 @@ function reporting_html_availability($table, $item, $pdf=0)
if ($item['fields']['total_checks']) { if ($item['fields']['total_checks']) {
$table2->head[2] = __('Total checks'); $table2->head[2] = __('Total checks');
} else { } else {
$table2->head[2] = __(''); $table2->head[2] = '';
} }
if ($item['fields']['checks_failed']) { if ($item['fields']['checks_failed']) {
$table2->head[3] = __('Checks failed'); $table2->head[3] = __('Checks failed');
} else { } else {
$table2->head[3] = __(''); $table2->head[3] = '';
} }
if ($item['fields']['checks_in_ok_status']) { if ($item['fields']['checks_in_ok_status']) {
$table2->head[4] = __('Checks OK'); $table2->head[4] = __('Checks OK');
} else { } else {
$table2->head[4] = __(''); $table2->head[4] = '';
} }
if ($item['fields']['checks_in_warning_status']) { if ($item['fields']['checks_in_warning_status']) {
$table2->head[5] = __('Checks Warning'); $table2->head[5] = __('Checks Warning');
} else { } else {
$table2->head[5] = __(''); $table2->head[5] = '';
} }
if ($item['fields']['unknown_checks']) { if ($item['fields']['unknown_checks']) {
$table2->head[6] = __('Checks Uknown'); $table2->head[6] = __('Checks Uknown');
} else { } else {
$table2->head[6] = __(''); $table2->head[6] = '';
} }
$table2->headstyle = []; $table2->headstyle = [];

View File

@ -138,7 +138,7 @@ function snmp_get_default_translations()
'post_process' => '1', 'post_process' => '1',
]; ];
$return['1.3.6.1.2.1.1.3.0'] = [ $return['1.3.6.1.2.1.1.3.0'] = [
'description' => __('system Up time'), 'description' => __('System Up time'),
'post_process' => '0.00000011574074', 'post_process' => '0.00000011574074',
]; ];

View File

@ -8363,17 +8363,17 @@ function ui_print_status_secmon_div($status, $title=false)
{ {
$class = 'status_rounded_rectangles forced_title'; $class = 'status_rounded_rectangles forced_title';
if (($status) === 'normal') { if (($status) === 'normal') {
$title = ($title === false) ? __('normal') : $title; $title = ($title === false) ? __('Normal') : $title;
return ui_print_div('group_view_ok '.$class, $title); return ui_print_div('group_view_ok '.$class, $title);
} }
if (($status) === 'warning') { if (($status) === 'warning') {
$title = ($title === false) ? __('warning') : $title; $title = ($title === false) ? __('Warning') : $title;
return ui_print_div('group_view_warn '.$class, $title); return ui_print_div('group_view_warn '.$class, $title);
} }
if (($status) === 'critical') { if (($status) === 'critical') {
$title = ($title === false) ? __('critical') : $title; $title = ($title === false) ? __('Critical') : $title;
return ui_print_div('group_view_crit '.$class, $title); return ui_print_div('group_view_crit '.$class, $title);
} }
} }

View File

@ -12,12 +12,11 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
/** /**
* @package Include * @package Include
* @subpackage Clippy * @subpackage Clippy
*/ */
function clippy_agent_out_of_limits() function clippy_agent_out_of_limits()
{ {
$return_tours = []; $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'] = [];
$return_tours['tours']['agent_out_of_limits']['steps'][] = [ $return_tours['tours']['agent_out_of_limits']['steps'][] = [
'init_step_context' => true, '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'] = [];
$return_tours['tours']['agent_out_of_limits']['conf']['autostart'] = false; $return_tours['tours']['agent_out_of_limits']['conf']['autostart'] = false;

View File

@ -12,12 +12,11 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
/** /**
* @package Include * @package Include
* @subpackage Clippy * @subpackage Clippy
*/ */
function clippy_start_page() function clippy_start_page()
{ {
$return_tours = []; $return_tours = [];
@ -36,7 +35,7 @@ function clippy_start_page()
$return_tours['tours']['monitoring_server_step_3']['steps'][] = [ $return_tours['tours']['monitoring_server_step_3']['steps'][] = [
'element' => "img[alt='Modules']", 'element' => "img[alt='Modules']",
'position' => 'left', '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'] = [];
$return_tours['tours']['monitoring_server_step_3']['conf']['show_bullets'] = 0; $return_tours['tours']['monitoring_server_step_3']['conf']['show_bullets'] = 0;

View File

@ -12,12 +12,11 @@
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details. // GNU General Public License for more details.
/** /**
* @package Include * @package Include
* @subpackage Clippy * @subpackage Clippy
*/ */
function clippy_interval_agent_min() function clippy_interval_agent_min()
{ {
$return_tours = []; $return_tours = [];
@ -33,7 +32,7 @@ function clippy_interval_agent_min()
$return_tours['tours']['interval_agent_min']['steps'][] = [ $return_tours['tours']['interval_agent_min']['steps'][] = [
'init_step_context' => true, '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.'), '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( 'img' => html_print_image(
'images/info-warning.svg', 'images/info-warning.svg',
true, true,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -357,7 +357,7 @@ class SecurityHardening extends Widget
break; break;
default: 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; break;
} }

View File

@ -254,9 +254,7 @@ class Module extends Entity
} catch (\Exception $e) { } catch (\Exception $e) {
// Unexistent agent. // Unexistent agent.
throw new \Exception( throw new \Exception(
__METHOD__.__( __METHOD__.' '.__('error: Module has no agent assigned')
' error: Module has no agent assigned.'
)
); );
} }
} }

View File

@ -113,7 +113,7 @@ abstract class Controller
$file_stream = Stream::create($stream); $file_stream = Stream::create($stream);
} catch (\Throwable $th) { } catch (\Throwable $th) {
throw new ForbiddenActionException( throw new ForbiddenActionException(
__('Error download file: ').$th->getMessage(), __('Error download file').': '.$th->getMessage(),
empty($th->getCode()) === true ? HttpCodesEnum::BAD_REQUEST : $th->getCode() empty($th->getCode()) === true ? HttpCodesEnum::BAD_REQUEST : $th->getCode()
); );
} }

View File

@ -79,7 +79,7 @@ abstract class FilterAbstract extends SerializableAbstract
foreach ($params as $field => $value) { foreach ($params as $field => $value) {
if (method_exists($this, 'set'.ucfirst($field)) === false) { if (method_exists($this, 'set'.ucfirst($field)) === false) {
if ($this->getEntityFilter() === null || method_exists($this->getEntityFilter(), '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));
} }
} }

View File

@ -59,12 +59,12 @@ abstract class SerializableAbstract implements JsonSerializable
foreach ($params as $field => $value) { foreach ($params as $field => $value) {
// Not valid parameters. // Not valid parameters.
if (method_exists($this, 'set'.ucfirst($field)) === false) { 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. // Read only parameters.
if (isset($this->fieldsReadOnly()[$field]) === true) { 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); $this->{'set'.ucfirst($field)}($value ?? null);

View File

@ -53,7 +53,7 @@ final class UserValidation
$this->existsUser($user->getIdUser()); $this->existsUser($user->getIdUser());
} else { } else {
if ($user->getIdUser() !== $oldUser->getIdUser()) { 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 private function validateIdUser(User $user): void
{ {
if ($user->getIdUser() === false) { if ($user->getIdUser() === false) {
throw new BadRequestException(__('idUser is missing')); throw new BadRequestException(__('IdUser is missing'));
} }
// Cannot have blanks. // Cannot have blanks.

View File

@ -181,9 +181,9 @@ class GeneralTacticalView
// 👋 // 👋
if (empty($name) === true) { if (empty($name) === true) {
$message = __('Welcome back! 👋'); $message = __('Welcome back!').' 👋';
} else { } else {
$message = __('Welcome back %s! 👋', $name); $message = __('Welcome back %s!', $name).' 👋';
} }
} }
@ -228,29 +228,29 @@ class GeneralTacticalView
if ($name !== '') { if ($name !== '') {
$emojiOptions = [ $emojiOptions = [
'have_good_day' => __('Have a good day %s', $name).' ✌', 'have_good_day' => __('Have a good day %s!', $name).' ✌',
'welcome_back' => __('Welcome back! %s', $name).' 👋', 'welcome_back' => __('Welcome back %s!', $name).' 👋',
'merry_christmas' => __('Welcome back! %s', $name).' 🎅', 'merry_christmas' => __('Welcome back %s!', $name).' 🎅',
'good_morning' => __('Good morning, %s!', $name).' ☕', 'good_morning' => __('Good morning, %s!', $name).' ☕',
'good_evening' => __('Good evening, %s', $name).' 🌇', 'good_evening' => __('Good evening, %s!', $name).' 🌇',
'good_night' => __('Good night, %s', $name).' 🌕', 'good_night' => __('Good night, %s!', $name).' 🌕',
'happy_summer' => __('Happy summer, %s', $name).' 🌞', 'happy_summer' => __('Happy summer, %s!', $name).' 🌞',
'happy_winter' => __('Happy winter, %s', $name).' ⛄', 'happy_winter' => __('Happy winter, %s!', $name).' ⛄',
'happy_autumn' => __('Happy autumn, %s', $name).' 🍂', 'happy_autumn' => __('Happy autumn, %s!', $name).' 🍂',
'happy_spring' => __('Happy spring, %s', $name).' 🌻', 'happy_spring' => __('Happy spring, %s!', $name).' 🌻',
]; ];
} else { } else {
$emojiOptions = [ $emojiOptions = [
'have_good_day' => __('Have a good day').' ✌', 'have_good_day' => __('Have a good day!').' ✌',
'welcome_back' => __('Welcome back!').' 👋', 'welcome_back' => __('Welcome back!').' 👋',
'merry_christmas' => __('Welcome back!').' 🎅', 'merry_christmas' => __('Welcome back!').' 🎅',
'good_morning' => __('Good morning!').' ☕', 'good_morning' => __('Good morning!').' ☕',
'good_evening' => __('Good evening').' 🌇', 'good_evening' => __('Good evening!').' 🌇',
'good_night' => __('Good night').' 🌕', 'good_night' => __('Good night!').' 🌕',
'happy_summer' => __('Happy summer').' 🌞', 'happy_summer' => __('Happy summer!').' 🌞',
'happy_winter' => __('Happy winter').' ⛄', 'happy_winter' => __('Happy winter!').' ⛄',
'happy_autumn' => __('Happy autumn').' 🍂', 'happy_autumn' => __('Happy autumn!').' 🍂',
'happy_spring' => __('Happy spring').' 🌻', 'happy_spring' => __('Happy spring!').' 🌻',
]; ];
} }

View File

@ -91,7 +91,7 @@ class Database extends Element
$image_status = html_print_image('images/status_check@svg.svg', true); $image_status = html_print_image('images/status_check@svg.svg', true);
$text = html_print_div( $text = html_print_div(
[ [
'content' => __('Everythings OK!'), 'content' => __('Everything\'s OK!'),
'class' => 'status-text', 'class' => 'status-text',
], ],
true true

View File

@ -286,19 +286,19 @@ class Events extends Element
foreach ($rows as $key => $row) { foreach ($rows as $key => $row) {
switch ($row['estado']) { switch ($row['estado']) {
case '2': case '2':
$label = _('In process'); $label = __('In process');
break; break;
case '0': case '0':
$label = _('New events'); $label = __('New events');
break; break;
case '3': case '3':
$label = _('Not validated'); $label = __('Not validated');
break; break;
case '1': case '1':
$label = _('Validated events'); $label = __('Validated events');
break; break;
default: default:

View File

@ -95,7 +95,7 @@ class LogStorage extends Element
$image_status = html_print_image('images/status_check@svg.svg', true); $image_status = html_print_image('images/status_check@svg.svg', true);
$text = html_print_div( $text = html_print_div(
[ [
'content' => __('Everythings OK!'), 'content' => __('Everything\'s OK!'),
'class' => 'status-text', 'class' => 'status-text',
], ],
true true
@ -114,7 +114,7 @@ class LogStorage extends Element
$image_status = html_print_image('images/status_check@svg.svg', true); $image_status = html_print_image('images/status_check@svg.svg', true);
$text = html_print_div( $text = html_print_div(
[ [
'content' => __('Everythings OK!'), 'content' => __('Everything\'s OK!'),
'class' => 'status-text', 'class' => 'status-text',
], ],
true true

View File

@ -88,7 +88,7 @@ class NewsBoard extends Element
</p> </p>
<p>'.__('Our interface is user-friendly,').' <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>'.__('Set up alerts and gain insights so keen,').'
<br>'.__("Optimize your data, like you've never seen.").' <br>'.__("Optimize your data, like you've never seen.").'
</p> </p>

View File

@ -79,7 +79,7 @@ class Overview extends Element
$image_status = html_print_image('images/status_check@svg.svg', true); $image_status = html_print_image('images/status_check@svg.svg', true);
$text = html_print_div( $text = html_print_div(
[ [
'content' => __('Everythings OK!'), 'content' => __('Everything\'s OK!'),
'class' => 'status-text', 'class' => 'status-text',
], ],
true true
@ -122,7 +122,7 @@ class Overview extends Element
$image_status = html_print_image('images/status_check@svg.svg', true); $image_status = html_print_image('images/status_check@svg.svg', true);
$text = html_print_div( $text = html_print_div(
[ [
'content' => __('Everythings OK!'), 'content' => __('Everything\'s OK!'),
'class' => 'status-text', 'class' => 'status-text',
], ],
true true

View File

@ -448,7 +448,7 @@ if (isset($config['id_user']) === false) {
} else if (($config['auth'] === 'saml') && ($login_button_saml)) { } else if (($config['auth'] === 'saml') && ($login_button_saml)) {
$saml_user_id = enterprise_hook('saml_process_user_login'); $saml_user_id = enterprise_hook('saml_process_user_login');
if (!$saml_user_id) { if (!$saml_user_id) {
$config['auth_error'] = __('saml error'); $config['auth_error'] = __('SAML error');
$login_failed = true; $login_failed = true;
include_once 'general/login_page.php'; include_once 'general/login_page.php';
while (ob_get_length() > 0) { while (ob_get_length() > 0) {
@ -1521,7 +1521,7 @@ echo html_print_input_hidden(
// 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('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'); 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');

View File

@ -424,7 +424,7 @@ class User
$options = [ $options = [
'name' => 'user', 'name' => 'user',
'value' => $this->user, 'value' => $this->user,
'placeholder' => __('user'), 'placeholder' => __('User'),
// 'autofocus' => 'autofocus', // 'autofocus' => 'autofocus',
// 'label' => __('User'), // 'label' => __('User'),
]; ];
@ -432,7 +432,7 @@ class User
$options = [ $options = [
'name' => 'password', 'name' => 'password',
'value' => '', 'value' => '',
'placeholder' => __('password'), 'placeholder' => __('Password'),
// 'label' => __('Password'), // 'label' => __('Password'),
'required' => 'required', 'required' => 'required',
]; ];

View File

@ -258,7 +258,7 @@ class Agents
$options = [ $options = [
'icon' => 'refresh', 'icon' => 'refresh',
'icon_pos' => 'right', 'icon_pos' => 'right',
'text' => __('Apply Filter'), 'text' => __('Apply filter'),
]; ];
$ui->formAddSubmitButton($options); $ui->formAddSubmitButton($options);
$html = $ui->getEndForm(); $html = $ui->getEndForm();

View File

@ -263,7 +263,7 @@ class Alerts
$options = [ $options = [
'icon' => 'refresh', 'icon' => 'refresh',
'icon_pos' => 'right', 'icon_pos' => 'right',
'text' => __('Apply Filter'), 'text' => __('Apply filter'),
]; ];
$ui->formAddSubmitButton($options); $ui->formAddSubmitButton($options);

View File

@ -1046,7 +1046,7 @@ class Events
$options = [ $options = [
'icon' => 'refresh', 'icon' => 'refresh',
'icon_pos' => 'right', 'icon_pos' => 'right',
'text' => __('Apply Filter'), 'text' => __('Apply filter'),
]; ];
$ui->formAddSubmitButton($options); $ui->formAddSubmitButton($options);
$html = $ui->getEndForm(); $html = $ui->getEndForm();

View File

@ -322,7 +322,7 @@ class Modules
$options = [ $options = [
'icon' => 'refresh', 'icon' => 'refresh',
'icon_pos' => 'right', 'icon_pos' => 'right',
'text' => __('Apply Filter'), 'text' => __('Apply filter'),
]; ];
$ui->formAddSubmitButton($options); $ui->formAddSubmitButton($options);
$html = $ui->getEndForm(); $html = $ui->getEndForm();

View File

@ -257,12 +257,12 @@ $table->data[1][1] = html_print_label_input_block(
); );
$table->data[1][2] = 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) html_print_checkbox('draw_alerts', 1, (bool) $draw_alerts, true)
); );
$graph_option_one_or_several = [ $graph_option_one_or_several = [
0 => __('several graphs for each module'), 0 => __('Several graphs for each module'),
1 => __('One combined graph'), 1 => __('One combined graph'),
]; ];

View File

@ -962,7 +962,7 @@ $tableAdvancedFilter->data['advancedField_1'][0] = html_print_label_input_block(
); );
$tableAdvancedFilter->data['advancedField_1'][1] = html_print_label_input_block( $tableAdvancedFilter->data['advancedField_1'][1] = html_print_label_input_block(
__('Show monitors...'), __('Show monitors'),
html_print_select( html_print_select(
$monitor_options, $monitor_options,
'module_option', 'module_option',

View File

@ -1036,7 +1036,7 @@ function table_datatables(filters, indexed_descriptions, processing){
return 0; return 0;
} }
var dec_point = "<?php echo $config['csv_decimal_separator']; ?>"; 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)); data = js_csv_format_numeric(data ,dec_point, thousands_separator, countDecimals(data));
} }
return data; return data;

View File

@ -268,7 +268,7 @@ $output = '<div id="tabs-sound-modal" class="ui-widget-dialog-border">';
] ]
); );
$output .= '<span class="text-discovered-alerts">'; $output .= '<span class="text-discovered-alerts">';
$output .= __('Congrats! theres nothing to show'); $output .= __('Congrats! there\'s nothing to show');
$output .= '</span>'; $output .= '</span>';
$output .= '</div>'; $output .= '</div>';
$output .= '<div class="elements-discovered-alerts" style="max-height:315px !important;"><ul></ul></div>'; $output .= '<div class="elements-discovered-alerts" style="max-height:315px !important;"><ul></ul></div>';

View File

@ -690,7 +690,7 @@ if (empty($draw) === false) {
html_print_div( html_print_div(
[ [
'id' => 'spinner', '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', 'class' => 'invisible',
'style' => 'position: initial;', 'style' => 'position: initial;',
] ]

View File

@ -610,7 +610,7 @@ $spinner = html_print_div(
html_print_div( html_print_div(
[ [
'id' => 'spinner', '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', 'class' => 'invisible',
'style' => 'position: initial;', 'style' => 'position: initial;',
] ]

View File

@ -368,7 +368,7 @@ $spinner = html_print_div(
html_print_div( html_print_div(
[ [
'id' => 'spinner', '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', 'class' => 'invisible',
'style' => 'position: initial;', 'style' => 'position: initial;',
] ]

View File

@ -922,12 +922,12 @@ $left_content .= '
'; ';
$intervals = []; $intervals = [];
$intervals[SECONDS_1HOUR] = _('Last ').human_time_description_raw(SECONDS_1HOUR, 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_6HOURS] = __('Last').' '.human_time_description_raw(SECONDS_6HOURS, true, 'large');
$intervals[SECONDS_12HOURS] = _('Last ').human_time_description_raw(SECONDS_12HOURS, 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_1DAY] = __('Last').' '.human_time_description_raw(SECONDS_1DAY, true, 'large');
$intervals[SECONDS_2DAY] = _('Last ').human_time_description_raw(SECONDS_2DAY, 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_1WEEK] = __('Last').' '.human_time_description_raw(SECONDS_1WEEK, true, 'large');
$right_content .= '<div class="interval-div">'.html_print_select( $right_content .= '<div class="interval-div">'.html_print_select(
$intervals, $intervals,

View File

@ -138,7 +138,7 @@ $header_title = __('Tree view');
$header_sub_title = __('Sort the agents by %s'); $header_sub_title = __('Sort the agents by %s');
switch ($tab) { switch ($tab) {
case 'tag': case 'tag':
$header_sub_title = sprintf($header_sub_title, __('tags')); $header_sub_title = sprintf($header_sub_title, __('Tags'));
break; break;
case 'os': case 'os':
@ -146,20 +146,20 @@ switch ($tab) {
break; break;
case 'group': case 'group':
$header_sub_title = sprintf($header_sub_title, __('groups')); $header_sub_title = sprintf($header_sub_title, __('Groups'));
break; break;
case 'module_group': case 'module_group':
$header_sub_title = sprintf($header_sub_title, __('module groups')); $header_sub_title = sprintf($header_sub_title, __('Module groups'));
break; break;
case 'module': case 'module':
$header_sub_title = sprintf($header_sub_title, __('modules')); $header_sub_title = sprintf($header_sub_title, __('Modules'));
break; break;
case 'policies': case 'policies':
if ($enterpriseEnable) { if ($enterpriseEnable) {
$header_sub_title = sprintf($header_sub_title, __('policies')); $header_sub_title = sprintf($header_sub_title, __('Policies'));
} }
break; break;
} }

View File

@ -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'), __('This will activate autorefresh in selected pages'),
true true
).'</p>'; ).'</p>';
@ -840,12 +840,12 @@ $skin = '';
// Title. // Title.
$row = []; $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; $table_remote->data['ehorus_user_level_conf'] = $row;
// Enable/disable eHorus for this user. // Enable/disable Ehorus for this user.
$row = []; $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); $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; $table_remote->data['ehorus_user_level_enabled'] = $row;

Some files were not shown because too many files have changed in this diff Show More