Fixed problems with text of definition and fixed other problems. Ticket: #4242

This commit is contained in:
m-lopez-f 2016-11-30 13:05:37 +01:00
parent 00c81d5863
commit c98242e996
10 changed files with 94066 additions and 87282 deletions

View File

@ -1022,7 +1022,7 @@ if ($update_module || $create_module) {
$throw_unknown_events = (bool)get_parameter('throw_unknown_events', false);
//Set the event type that can show.
$disabled_types_event = array(EVENTS_GOING_UNKNOWN => (int)$throw_unknown_events);
$disabled_types_event = array(EVENTS_GOING_UNKNOWN => (int)!$throw_unknown_events);
$disabled_types_event = io_json_mb_encode($disabled_types_event);
$module_macro_names = (array) get_parameter('module_macro_names', array());

View File

@ -427,7 +427,7 @@ else {
$throw_unknown_events_check =
policy_module_is_disable_type_event($__id_pol_mod, EVENTS_GOING_UNKNOWN);
}
$table_advanced->data[4][3] = __('Throw unknown events');
$table_advanced->data[4][3] = __('Discard unknown events');
$table_advanced->data[4][4] = html_print_checkbox('throw_unknown_events',
1, $throw_unknown_events_check, true, $disabledBecauseInPolicy);
$table_advanced->colspan[4][4] = 3;

View File

@ -570,7 +570,7 @@ if ($table->rowspan['edit10'][0] == 2) {
else {
$table->rowspan['edit10'][0] = $table->rowspan['edit10'][1] = 2;
}
$table->data['edit102'][2] = __('Throw unknown events');
$table->data['edit102'][2] = __('Discard unknown events');
$table->data['edit102'][3] = html_print_select(
array('' => __('No change'),

View File

@ -168,9 +168,9 @@ $table->data[8][3] = html_print_input_text ('max', $max, '', 5, 15, true) . ' '
$table->data[9][0] = __('Unit');
$table->data[9][1] = html_print_input_text ('unit', $unit, '', 12, 25, true);
$table->data[9][2] = __('Throw unknown events');
$table->data[9][2] = __('Discard unknown events');
$table->data[9][3] = html_print_checkbox('throw_unknown_events', 1,
!network_components_is_disable_type_event($id, EVENTS_GOING_UNKNOWN), true);
network_components_is_disable_type_event($id, EVENTS_GOING_UNKNOWN), true);
$table->data[10][0] = __('Critical instructions'). ui_print_help_tip(__("Instructions when the status is critical"), true);
$table->data[10][1] = html_print_textarea ('critical_instructions', 2, 65, $critical_instructions, '', true);

BIN
pandora_console/include/languages/en.mo Normal file → Executable file

Binary file not shown.

57888
pandora_console/include/languages/en.po Normal file → Executable file

File diff suppressed because it is too large Load Diff

BIN
pandora_console/include/languages/en_GB.mo Normal file → Executable file

Binary file not shown.

62023
pandora_console/include/languages/en_GB.po Normal file → Executable file

File diff suppressed because it is too large Load Diff

BIN
pandora_console/include/languages/es.mo Normal file → Executable file

Binary file not shown.

61427
pandora_console/include/languages/es.po Normal file → Executable file

File diff suppressed because it is too large Load Diff