diff --git a/src/chartgenerator.php b/src/chartgenerator.php index 977f744..6cb29b5 100644 --- a/src/chartgenerator.php +++ b/src/chartgenerator.php @@ -156,7 +156,7 @@ if ( !$content['error_occured'] ) // $graph->title->SetColor("darkred"); // Setup the tab title - $graph->tabtitle->Set( GetAndReplaceLangStr($content['LN_STATS_COUNTBY'], $content[ $fields[$content['chart_field']]['FieldCaptionID'] ]) . " - " . GetAndReplaceLangStr($content['LN_STATS_TOPRECORDS'], $content['maxrecords']) ); + $graph->tabtitle->Set( GetAndReplaceLangStr($content['LN_STATS_CHARTTITLE'], $content['maxrecords'], $content[ $fields[$content['chart_field']]['FieldCaptionID'] ]) ); $graph->tabtitle->SetFont(FF_ARIAL,FS_BOLD,10); $graph->tabtitle->SetPos('left'); @@ -165,8 +165,8 @@ if ( !$content['error_occured'] ) $graph->footer->left->SetFont( FF_ARIAL, FS_NORMAL, 8); $graph->footer->right->Set ( GetAndReplaceLangStr($content['LN_STATS_GENERATEDAT'], date("Y-m-d")) ); $graph->footer->right->SetFont( FF_ARIAL, FS_NORMAL, 8); - $graph->footer->left->Set ("phpLogCon v" . $content['BUILDNUMBER'] . "\n" . GetAndReplaceLangStr($content['LN_STATS_GENERATEDAT'], date("Y-m-d")) ); - $graph->footer->left->SetFont( FF_ARIAL, FS_NORMAL, 8); +// $graph->footer->left->Set ("phpLogCon v" . $content['BUILDNUMBER'] . "\n" . GetAndReplaceLangStr($content['LN_STATS_GENERATEDAT'], date("Y-m-d")) ); +// $graph->footer->left->SetFont( FF_ARIAL, FS_NORMAL, 8); // $graph->footer->right->SetColor("darkred"); // Setup font for axis @@ -235,7 +235,7 @@ if ( !$content['error_occured'] ) $graph->yscale->ticks->SupressZeroLabel(false); // Setup the tab title - $graph->tabtitle->Set( GetAndReplaceLangStr($content['LN_STATS_COUNTBY'], $content[ $fields[$content['chart_field']]['FieldCaptionID'] ]) . " - " . GetAndReplaceLangStr($content['LN_STATS_TOPRECORDS'], $content['maxrecords']) ); + $graph->tabtitle->Set( GetAndReplaceLangStr($content['LN_STATS_CHARTTITLE'], $content['maxrecords'], $content[ $fields[$content['chart_field']]['FieldCaptionID'] ]) ); $graph->tabtitle->SetFont(FF_ARIAL,FS_BOLD,10); $graph->tabtitle->SetPos('left'); @@ -320,7 +320,7 @@ if ( !$content['error_occured'] ) $graph->yscale->ticks->SupressZeroLabel(false); // Setup the tab title - $graph->tabtitle->Set( GetAndReplaceLangStr($content['LN_STATS_COUNTBY'], $content[ $fields[$content['chart_field']]['FieldCaptionID'] ]) . " - " . GetAndReplaceLangStr($content['LN_STATS_TOPRECORDS'], $content['maxrecords']) ); + $graph->tabtitle->Set( GetAndReplaceLangStr($content['LN_STATS_CHARTTITLE'], $content['maxrecords'], $content[ $fields[$content['chart_field']]['FieldCaptionID'] ]) ); $graph->tabtitle->SetFont(FF_ARIAL,FS_BOLD,10); $graph->tabtitle->SetPos('right'); $graph->tabtitle->SetTabAlign('right'); diff --git a/src/lang/de/main.php b/src/lang/de/main.php index 6f2e79f..7d8731c 100644 --- a/src/lang/de/main.php +++ b/src/lang/de/main.php @@ -280,6 +280,7 @@ $content['LN_DETAIL_BACKTOLIST'] = "Back to Listview"; $content['LN_CONVERT_ERROR_SOURCEIMPORT'] = "Critical Error while importing the sources into the database, the SourceType '%1' is not supported by this phpLogCon Version."; // Stats Site + $content['LN_STATS_CHARTTITLE'] = "Top %1 '%2' sorted by messagecount"; $content['LN_STATS_COUNTBY'] = "Messagecount by '%1'"; $content['LN_STATS_GRAPH'] = "Graph"; $content['LN_STATS_TOPRECORDS'] = "Maxrecords: %1"; diff --git a/src/lang/en/main.php b/src/lang/en/main.php index c5c4472..8ba156a 100644 --- a/src/lang/en/main.php +++ b/src/lang/en/main.php @@ -280,6 +280,7 @@ $content['LN_CONVERT_PROCESS'] = "Conversion Progress:"; $content['LN_CONVERT_ERROR_SOURCEIMPORT'] = "Critical Error while importing the sources into the database, the SourceType '%1' is not supported by this phpLogCon Version."; // Stats Site + $content['LN_STATS_CHARTTITLE'] = "Top %1 '%2' sorted by messagecount"; $content['LN_STATS_COUNTBY'] = "Messagecount by '%1'"; $content['LN_STATS_OTHERS'] = "All Others"; $content['LN_STATS_TOPRECORDS'] = "Maxrecords: %1"; diff --git a/src/lang/pt_BR/main.php b/src/lang/pt_BR/main.php index c607ed4..ca30cd9 100644 --- a/src/lang/pt_BR/main.php +++ b/src/lang/pt_BR/main.php @@ -285,6 +285,7 @@ $content['LN_DETAIL_BACKTOLIST'] = "Voltar para a lista"; $content['LN_CONVERT_ERROR_SOURCEIMPORT'] = "Critical Error while importing the sources into the database, the SourceType '%1' is not supported by this phpLogCon Version."; // Stats Site + $content['LN_STATS_CHARTTITLE'] = "Top %1 '%2' sorted by messagecount"; $content['LN_STATS_COUNTBY'] = "Messagecount by '%1'"; $content['LN_STATS_GRAPH'] = "Graph"; $content['LN_STATS_TOPRECORDS'] = "Maxrecords: %1";