Skip to content

Commit

Permalink
Various fixes && Updated Translations (Cacti#1032)
Browse files Browse the repository at this point in the history
Good catch on the bug fixes too.  Hard to spot.
_______________________________________________________

* Updated Dutch translations
- Fixed i18n

* Defined fields in queries

* Fixed changelog

* Updated Dutch translations

* Various fixes

All committed files:
- true|false to lowercase

add_perms.php:
- displayGroups() was undefined

add_tree.php:
- duplicate case for '--quiet'

repair_templates.php:
- correction function call to diaplay_version()

gettext.php:
- PHP EOF unneeded

* Updated Dutch translations
- Updated Dutch translations with latest cacti.pot file

* Updated Dutch translations
- Fixed conflicts in translations
  • Loading branch information
reboot1983 authored and cigamit committed Oct 15, 2017
1 parent 0c993e8 commit c3419aa
Show file tree
Hide file tree
Showing 54 changed files with 6,197 additions and 4,596 deletions.
4 changes: 2 additions & 2 deletions aggregate_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function aggregate_form_save() {
return null;
}

cacti_log('AGGREGATE GRAPH TEMPLATE Saved ID: ' . $save1['id'] . ' Name: ' . $save1['name'], FALSE, 'AGGREGATE', POLLER_VERBOSITY_DEBUG);
cacti_log('AGGREGATE GRAPH TEMPLATE Saved ID: ' . $save1['id'] . ' Name: ' . $save1['name'], false, 'AGGREGATE', POLLER_VERBOSITY_DEBUG);

/* do a quick comparison to see if anything changed */
if ($is_new == false) {
Expand Down Expand Up @@ -136,7 +136,7 @@ function aggregate_form_save() {
array($save1['gprint_prefix'], $save1['graph_type'],
$save1['total'], $save1['total_prefix'], $save1['order_type'], $id));

cacti_log('AGGREGATE GRAPH TEMPLATE Saved ID: ' . $id, FALSE, 'AGGREGATE', POLLER_VERBOSITY_DEBUG);
cacti_log('AGGREGATE GRAPH TEMPLATE Saved ID: ' . $id, false, 'AGGREGATE', POLLER_VERBOSITY_DEBUG);
} else {
$id = $save1['id'];
}
Expand Down
2 changes: 1 addition & 1 deletion automation_networks.php
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ function setSchedule() {
<?php
}

function get_networks(&$sql_where, $rows, $apply_limits = TRUE) {
function get_networks(&$sql_where, $rows, $apply_limits = true) {
if (get_request_var('filter') != '') {
$sql_where = " WHERE (automation_networks.name LIKE '%" . get_request_var('filter') . "%')";
}
Expand Down
14 changes: 7 additions & 7 deletions cli/add_data_query.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
array_shift($parms);

if (sizeof($parms)) {
$displayHosts = FALSE;
$displayDataQueries = FALSE;
$quietMode = FALSE;
$displayHosts = false;
$displayDataQueries = false;
$quietMode = false;

unset($host_id);
unset($data_query_id);
Expand All @@ -58,7 +58,7 @@

switch ($arg) {
case '-d':
$debug = TRUE;
$debug = true;

break;
case '--host-id':
Expand Down Expand Up @@ -113,13 +113,13 @@
display_help();
exit;
case '--list-hosts':
$displayHosts = TRUE;
$displayHosts = true;
break;
case '--list-data-queries':
$displayDataQueries = TRUE;
$displayDataQueries = true;
break;
case '--quiet':
$quietMode = TRUE;
$quietMode = true;
break;
default:
echo "ERROR: Invalid Argument: ($arg)\n\n";
Expand Down
14 changes: 7 additions & 7 deletions cli/add_device.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@
$proxy = false;
$device_threads = read_config_option('device_threads');;

$displayHostTemplates = FALSE;
$displayCommunities = FALSE;
$quietMode = FALSE;
$displayHostTemplates = false;
$displayCommunities = false;
$quietMode = false;

foreach($parms as $parameter) {
if (strpos($parameter, '=')) {
Expand All @@ -91,7 +91,7 @@

switch ($arg) {
case '-d':
$debug = TRUE;
$debug = true;

break;
case '--description':
Expand Down Expand Up @@ -274,15 +274,15 @@
display_help();
exit;
case '--list-communities':
$displayCommunities = TRUE;
$displayCommunities = true;

break;
case '--list-host-templates':
$displayHostTemplates = TRUE;
$displayHostTemplates = true;

break;
case '--quiet':
$quietMode = TRUE;
$quietMode = true;

break;
default:
Expand Down
14 changes: 7 additions & 7 deletions cli/add_graph_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@
array_shift($parms);

if (sizeof($parms)) {
$displayHosts = FALSE;
$displayGraphTemplates = FALSE;
$quietMode = FALSE;
$displayHosts = false;
$displayGraphTemplates = false;
$quietMode = false;
unset($host_id);
unset($graph_template_id);

Expand All @@ -55,7 +55,7 @@

switch ($arg) {
case '-d':
$debug = TRUE;
$debug = true;

break;
case '--host-id':
Expand Down Expand Up @@ -85,13 +85,13 @@
display_help();
exit(0);
case '--list-hosts':
$displayHosts = TRUE;
$displayHosts = true;
break;
case '--list-graph-templates':
$displayGraphTemplates = TRUE;
$displayGraphTemplates = true;
break;
case '--quiet':
$quietMode = TRUE;
$quietMode = true;
break;
default:
echo "ERROR: Invalid Argument: ($arg)\n\n";
Expand Down
35 changes: 21 additions & 14 deletions cli/add_perms.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@
$itemId = 0;
$hostId = 0;

$quietMode = FALSE;
$displayGroups = FALSE;
$displayUsers = FALSE;
$displayTrees = FALSE;
$displayHosts = FALSE;
$displayGraphs = FALSE;
$displayGraphTemplates = FALSE;
$quietMode = false;
$displayGroups = false;
$displayUsers = false;
$displayTrees = false;
$displayHosts = false;
$displayGraphs = false;
$displayGraphTemplates = false;

foreach($parms as $parameter) {
if (strpos($parameter, '=')) {
Expand Down Expand Up @@ -92,31 +92,31 @@

break;
case '--list-groups':
$displayGroups = TRUE;
$displayGroups = true;

break;
case '--list-users':
$displayUsers = TRUE;
$displayUsers = true;

break;
case '--list-trees':
$displayTrees = TRUE;
$displayTrees = true;

break;
case '--list-hosts':
$displayHosts = TRUE;
$displayHosts = true;

break;
case '--list-graphs':
$displayGraphs = TRUE;
$displayGraphs = true;

break;
case '--list-graph-templates':
$displayGraphTemplates = TRUE;
$displayGraphTemplates = true;

break;
case '--quiet':
$quietMode = TRUE;
$quietMode = true;

break;
case '--version':
Expand Down Expand Up @@ -260,3 +260,10 @@ function display_help() {
echo " --list-graph-templates\n";
echo " --list-graphs --host-id=[ID]\n";
}

function displayGroups() {
/**
* Todo implement
*/
echo 'This option has not yet been implemented';
}
26 changes: 11 additions & 15 deletions cli/add_tree.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@
$hostId = 0;
$hostGroupStyle = 1; # 1 = Graph Template, 2 = Data Query Index

$quietMode = FALSE;
$displayHosts = FALSE;
$displayTrees = FALSE;
$displayNodes = FALSE;
$displayRRAs = FALSE;
$displayGraphs = FALSE;
$quietMode = false;
$displayHosts = false;
$displayTrees = false;
$displayNodes = false;
$displayRRAs = false;
$displayGraphs = false;

$hosts = getHosts();

Expand Down Expand Up @@ -105,32 +105,28 @@

break;
case '--quiet':
$quietMode = TRUE;
$quietMode = true;

break;
case '--list-hosts':
$displayHosts = TRUE;
$displayHosts = true;

break;
case '--list-trees':
$displayTrees = TRUE;
$displayTrees = true;

break;
case '--list-nodes':
$displayNodes = TRUE;
$displayNodes = true;

break;
case '--list-graphs':
$displayGraphs = TRUE;
$displayGraphs = true;

break;
case '--host-group-style':
$hostGroupStyle = trim($value);

break;
case '--quiet':
$quietMode = TRUE;

break;
case '--version':
case '-V':
Expand Down
4 changes: 2 additions & 2 deletions cli/analyze_database.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

global $debug;

$debug = FALSE;
$debug = false;
$form = '';
$start = time();

Expand All @@ -54,7 +54,7 @@
switch ($arg) {
case '-d':
case '--debug':
$debug = TRUE;
$debug = true;
break;
case '--version':
case '-V':
Expand Down
4 changes: 2 additions & 2 deletions cli/data_template_associate_rra.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
switch ($arg) {
case '-d':
case '--debug':
$debug = TRUE;
$debug = true;
break;
case '--rra':
$rra = trim($value);
Expand All @@ -71,7 +71,7 @@
display_help();
exit;
case '--quiet':
$quietMode = TRUE;
$quietMode = true;
break;
default:
echo "ERROR: Invalid Argument: ($arg)\n\n";
Expand Down
4 changes: 2 additions & 2 deletions cli/host_update_template.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
exit;
}

$debug = FALSE;
$debug = false;
$template = '';
$hostid = '';

Expand All @@ -74,7 +74,7 @@
exit(0);
case '-d':
case '--debug':
$debug = TRUE;
$debug = true;
break;
case '--version':
case '-V':
Expand Down
4 changes: 2 additions & 2 deletions cli/poller_data_sources_reapply_names.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
exit;
}

$debug = FALSE;
$debug = false;
$host_id = '';
$filter = '';

Expand All @@ -71,7 +71,7 @@
break;
case '-d' :
case '--debug' :
$debug = TRUE;
$debug = true;
break;
case '--version' :
case '-v' :
Expand Down
4 changes: 2 additions & 2 deletions cli/poller_graphs_reapply_names.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
$parms = $_SERVER['argv'];
array_shift($parms);

$debug = FALSE;
$debug = false;
$host_id = '';
$filter = '';

Expand All @@ -63,7 +63,7 @@
break;
case '--debug':
case '-d':
$debug = TRUE;
$debug = true;
break;
case '--version':
case '-V':
Expand Down
2 changes: 1 addition & 1 deletion cli/poller_output_empty.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
$rrds_processed = 0;

while (db_fetch_cell('SELECT count(*) FROM poller_output') > 0) {
$rrds_processed = $rrds_processed + process_poller_output($rrdtool_pipe, FALSE);
$rrds_processed = $rrds_processed + process_poller_output($rrdtool_pipe, false);
}

echo "There were $rrds_processed, RRD updates made this pass\n";
Expand Down
4 changes: 2 additions & 2 deletions cli/poller_reindex_hosts.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
$parms = $_SERVER['argv'];
array_shift($parms);

$debug = FALSE;
$debug = false;
$host_id = '';
$query_id = 'all'; /* just to mimic the old behaviour */
$host_descr = '';
Expand Down Expand Up @@ -69,7 +69,7 @@
break;
case '-d':
case '--debug':
$debug = TRUE;
$debug = true;
break;
case '--version':
case '-V':
Expand Down
Loading

0 comments on commit c3419aa

Please sign in to comment.