fix errors in translations pandora_enterprise#13668

This commit is contained in:
daniel 2024-05-15 18:27:25 +02:00
parent d9cd306ab8
commit d2417257bf
34 changed files with 106177 additions and 115994 deletions

View File

@ -3823,7 +3823,7 @@ if (is_metaconsole() === true) {
<td>
<span id="row_event_graph_by_agent">
<?php
echo __('By agent ');
echo __('By agent').' ';
html_print_checkbox_switch(
'event_graph_by_agent',
true,
@ -3833,7 +3833,7 @@ if (is_metaconsole() === true) {
</span>
<span id="row_event_graph_by_user">
<?php
echo __('By user validator ');
echo __('By user validator').' ';
html_print_checkbox_switch(
'event_graph_by_user_validator',
true,
@ -3843,7 +3843,7 @@ if (is_metaconsole() === true) {
</span>
<span id="row_event_graph_by_criticity">
<?php
echo __('By criticity ');
echo __('By criticity').' ';
html_print_checkbox_switch(
'event_graph_by_criticity',
true,
@ -3853,7 +3853,7 @@ if (is_metaconsole() === true) {
</span>
<span id="row_event_graph_by_validated">
<?php
echo __('Validated vs unvalidated ');
echo __('Validated vs unvalidated').' ';
html_print_checkbox_switch(
'event_graph_validated_vs_unvalidated',
true,

View File

@ -190,7 +190,7 @@ if ($schedule_report != '') {
ui_print_result_message(
$result,
__('Your report has been planned, and the system will email you a '.$report_type.' file with the report as soon as its finished'),
__('Your report has been planned, and the system will email you a %s file with the report as soon as its finished', $report_type),
__('An error has ocurred')
);
echo '<br>';

View File

@ -50,7 +50,7 @@ if (is_ajax()) {
}
echo "<div id='dialog' title='".__('Enforce https Information')."' class='invisible'>";
echo "<p class='center'>".__('If SSL is not properly configured you will lose access to ').get_product_name().__(' Console').'</p>';
echo "<p class='center'>".__('If SSL is not properly configured you will lose access to').' '.get_product_name().' '.__('Console').'</p>';
echo '</div>';
$performance_variables_control = (array) json_decode(io_safe_output($config['performance_variables_control']));
@ -112,7 +112,7 @@ html_print_div(
[
'id' => 'force_public_url_dialog',
'class' => 'invisible',
'content' => __('If public URL is not properly configured you will lose access to ').get_product_name().__(' Console'),
'content' => __('If public URL is not properly configured you will lose access to').' '.get_product_name().' '.__('Console'),
]
);

View File

@ -2202,7 +2202,7 @@ html_print_table($table_vc);
echo '</fieldset>';
echo '<fieldset class="margin-bottom-10">';
echo '<legend>'.__('Reports configuration ').ui_print_help_icon('reports_configuration_tab', true).'</legend>';
echo '<legend>'.__('Reports configuration').' '.ui_print_help_icon('reports_configuration_tab', true).'</legend>';
html_print_table($table_report);
echo '</fieldset>';

View File

@ -2600,7 +2600,7 @@ class ConsoleSupervisor
$this->notify(
[
'type' => 'NOTIF.API.ACCESS',
'title' => __('Cannot access the Pandora FMS API '),
'title' => __('Cannot access the Pandora FMS API'),
'message' => __('Please check the configuration, some components may fail due to this misconfiguration in '.$server_name.' ('.$config['public_url'].')'),
'icon_notification' => self::ICON_ERROR,
]
@ -3078,7 +3078,7 @@ class ConsoleSupervisor
$this->notify(
[
'type' => 'NOTIF.HAMASTER.MESSAGE',
'title' => __('Desynchronized operation on the node '.$node['host']),
'title' => __('Desynchronized operation on the node %s', $node['host']),
'message' => __($message),
'url' => '__url__/index.php?sec=gservers&sec2=enterprise/godmode/servers/new_HA_cluster',
'icon_notification' => self::ICON_ERROR,

View File

@ -398,7 +398,7 @@ class OrderInterpreter extends Wizard
foreach ($this->pages_menu as $key => $value) {
if (preg_match(
'/.*'.io_safe_output($text).'.*/i',
__('GO TO '.$value['name'])
__('GO TO %s', $value['name'])
) && $value['acl']
) {
if ($iterator <= 9 && $this->canShowItem($enterprise, $this->pages_menu[$key]['url'])) {

View File

@ -4090,7 +4090,7 @@ function series_type_graph_array($data, $show_elements_graph)
if ($show_elements_graph['unit']) {
$name_legend = $show_elements_graph['labels'][$value['agent_module_id']];
$name_legend .= ' / ';
$name_legend .= __('Unit ').' ';
$name_legend .= __('Unit').' ';
$name_legend .= $show_elements_graph['unit'].': ';
} else {
if (isset($show_elements_graph['from_interface']) === true
@ -4109,7 +4109,7 @@ function series_type_graph_array($data, $show_elements_graph)
$name_legend .= ' / ';
$name_legend .= $value['module_name'];
$name_legend .= ' / ';
$name_legend .= __('Unit ').' ';
$name_legend .= __('Unit').' ';
$name_legend .= $value['unit'].': ';
}
} else {
@ -4123,7 +4123,7 @@ function series_type_graph_array($data, $show_elements_graph)
$name_legend .= ' / ';
$name_legend .= $value['module_name'];
$name_legend .= ' / ';
$name_legend .= __('Unit ').' ';
$name_legend .= __('Unit').' ';
$name_legend .= $value['unit'].'Baseline ';
} else {
$name_legend = $value['agent_alias'];
@ -4168,7 +4168,7 @@ function series_type_graph_array($data, $show_elements_graph)
$name_legend .= ' / ';
$name_legend .= $value['module_name'];
$name_legend .= ' / ';
$name_legend .= __('Unit ').' ';
$name_legend .= __('Unit').' ';
$name_legend .= $value['unit'].': ';
} else {
$name_legend .= $value['agent_alias'];
@ -4252,7 +4252,7 @@ function series_type_graph_array($data, $show_elements_graph)
$name_legend .= ' / ';
$name_legend .= $value['module_name'];
$name_legend .= ' / ';
$name_legend .= __('Unit ').' ';
$name_legend .= __('Unit').' ';
$name_legend .= $show_elements_graph['unit'].': ';
} else {
$name_legend .= $value['agent_alias'];
@ -4329,7 +4329,7 @@ function series_type_graph_array($data, $show_elements_graph)
$name_legend .= __('of module').' ';
$name_legend .= $value['agent_alias'].' / ';
$name_legend .= $value['module_name'].' / ';
$name_legend .= __('Unit ').' ';
$name_legend .= __('Unit').' ';
$name_legend .= $show_elements_graph['unit'].': ';
} else {
$name_legend = __('Percentil').' ';

View File

@ -10337,7 +10337,7 @@ function api_set_module_data($id, $thrash2, $other, $trash1)
if (false === @file_put_contents($config['remote_config'].'/'.io_safe_output($agent['nombre']).'.'.$idAgentModule.'.'.$time.'.data', $xml)) {
returnError(sprintf('XML file could not be generated in path: %s', $config['remote_config']));
} else {
echo __('XML file was generated successfully in path: ').$config['remote_config'];
echo __('XML file was generated successfully in path: %s', $config['remote_config']);
returnData('string', ['type' => 'string', 'data' => $xml]);
return;
}

View File

@ -2283,7 +2283,7 @@ function reporting_event_report_group(
}
if (!empty($content['style']['event_filter_exclude'])) {
$return['subtitle'] .= ' ('.__('Exclude ').$content['style']['event_filter_exclude'].')';
$return['subtitle'] .= ' ('.__('Exclude %s', $content['style']['event_filter_exclude']).')';
}
$return['description'] = $content['description'];

View File

@ -866,7 +866,7 @@ function reports_get_report_types($template=false, $not_editor=false)
];
$types['alert_report_agent'] = [
'optgroup' => __('Alerts'),
'name' => __('Agent alert report '),
'name' => __('Agent alert report'),
];
if (!$template) {
@ -878,7 +878,7 @@ function reports_get_report_types($template=false, $not_editor=false)
$types['alert_report_actions'] = [
'optgroup' => __('Alerts'),
'name' => __('Actions alert report '),
'name' => __('Actions alert report'),
];
$types['event_report_module'] = [

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

@ -396,7 +396,7 @@ class GroupsStatusMapWidget extends Widget
'name' => $row['estado'],
'value' => $row['total_modules'],
'color' => $color,
'tooltip_content' => $row['total_modules'].__(' Modules(%s)', $name_status),
'tooltip_content' => __('%s Modules(%s)', $row['total_modules'], $name_status),
'link' => 'index.php?sec=view&sec2=operation/agentes/status_monitor&refr=0&ag_group='.$row['id_grupo'].'&ag_freestring=&module_option=1&ag_modulename=&moduletype=&datatype=&status='.$row['estado'].'&sort_field=&sort=none&pure=',
];
$names[$row['id_grupo']] = $row['nombre'];

View File

@ -90,7 +90,7 @@ if (empty($schedule_report) === false) {
ui_print_result_message(
$result,
__('Your report has been planned, and the system will email you a '.$report_type.' file with the report as soon as its finished'),
__('Your report has been planned, and the system will email you a %s file with the report as soon as its finished', $report_type),
__('An error has ocurred')
);
echo '<br>';

View File

@ -238,7 +238,7 @@ if (isset($_GET['modified']) && !$view_mode) {
$user_info = $upd_info;
} else {
if (!$error_msg) {
$error_msg = __('Error updating passwords: ').($config['auth_error'] ?? '');
$error_msg = __('Error updating passwords').': '.($config['auth_error'] ?? '');
}
$user_auth_error = $config['auth_error'];

View File

@ -2243,7 +2243,7 @@ class Client
$pct = (90 / $total_updates);
do {
$this->listUpdates();
$this->globalTask = __('Updating to '.$this->nextUpdate);
$this->globalTask = __('Updating to %s', $this->nextUpdate);
$rc = $this->updateNextVersion();
if ($rc === false) {
// Failed to upgrade to next version.

View File

@ -67,8 +67,8 @@ global $config;
'uploadSuccess': "<?php echo __('The package has been uploaded successfully.'); ?>",
'uploadMessage': "<?php echo __("Please keep in mind that this package is going to override your actual %s files and that it's recommended to conduct a backup before continuing the updating process.", get_product_name()); ?>",
'clickToStart': "<?php echo __('Click on the file below to begin.'); ?>",
'ensureUpdate': "<?php echo __('This action will upgrade this console to version '); ?> ",
'ensureServerUpdate': "<?php echo __('This action will upgrade all servers to version '); ?> ",
'ensureUpdate': "<?php echo __('This action will upgrade this console to version'); ?> ",
'ensureServerUpdate': "<?php echo __('This action will upgrade all servers to version'); ?> ",
'ensure': "<?php echo __('Are you sure?'); ?>",
'updatingTo': "<?php echo __('Updating to'); ?> ",
'preventExitMsg': "<?php echo __('Do you really want to leave our brilliant application?'); ?>",

View File

@ -150,7 +150,6 @@ global $config;
blast.setAttribute('disable', true);
result.innerHTML = '';
umConfirm({
/*message: "<?php echo __('This action will upgrade this console to version '); ?> "+nextUpdateVersion+". <?php echo __('Are you sure?'); ?>",*/
message: "<?php echo '<p>'.$text_for_next_version.'</p>'; ?> ",
title: "<?php echo __('Update to'); ?> "+nextUpdateVersion,
onAccept: function() {
@ -174,11 +173,11 @@ global $config;
if(e != '504') {
if (typeof r != "undefined" ) {
result.innerHTML = umErrorMsg(
'<?php echo __('Failed to update to '); ?>' + nextUpdateVersion+' '+r
'<?php echo __('Failed to update to'); ?>' + ' ' + nextUpdateVersion+' '+r
);
} else {
result.innerHTML = umErrorMsg(
'<?php echo __('Failed to update to '); ?>' + nextUpdateVersion+' RC'+e
'<?php echo __('Failed to update to'); ?>' + ' ' + nextUpdateVersion+' RC'+e
);
}
} else {
@ -197,7 +196,6 @@ global $config;
blast.setAttribute('disable', true);
result.innerHTML = '';
umConfirm({
/*message: "<?php echo __('This action will upgrade this console to version '); ?> "+lastUpdateVersion+". <?php echo __('Are you sure?'); ?>",*/
message: "<?php echo '<p>'.$text_for_last_version.'</p>'; ?> ",
title: "<?php echo __('Update to'); ?> "+lastUpdateVersion,
onAccept: function() {