Skip to content

Commit

Permalink
translated graphs completely to english
Browse files Browse the repository at this point in the history
  • Loading branch information
pgbv committed Jun 29, 2024
1 parent 0acf247 commit 898b41f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions cron/graphs.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,15 @@ function getGraph($vars = '') {
$daysLabel[] = strftime('%e%a',$time); // iconv("windows-1251", "UTF-8",strftime('%#d%a',$time));
}
$MyData = new pData();
$MyData->addPoints($players,"Игроки");
$MyData->addPoints($players,"Players");
$MyData->addPoints($daysLabel,"Labels");
$MyData->setSerieDescription("Labels","Дни");
$MyData->setSerieDescription("Labels","Days");
$MyData->setAbscissa("Labels");
getGraph(array(
'graphData' => $MyData,
'graphH' => 240,
'graphW' => 110,
'captionText' => 'Игроки на NFK Planet',
'captionText' => 'NFK Planet activity',
'fileName' => '../images/graphs/graph-players-week.png',
'graphArea' => array(
'x'=>16, 'y'=>16, 'h'=>-16, 'w'=>-16
Expand Down Expand Up @@ -137,19 +137,19 @@ function getGraph($vars = '') {
$daysLabel[] = strftime('%m.%e %a',$time); // iconv("windows-1251", "UTF-8",strftime('%m/%#d%a',$time));
}
$MyData = new pData();
$MyData->addPoints($matches,"Матчи");
$MyData->addPoints($players,"Игроки");
$MyData->addPoints($matches,"Matches");
$MyData->addPoints($players,"Players");

$MyData->addPoints($daysLabel,"Labels");
$MyData->setSerieDescription("Labels","Дни");
$MyData->setSerieDescription("Labels","Days");
$MyData->setAbscissa("Labels");


getGraph(array(
'graphData' => $MyData,
'graphH' => 1280,
'graphW' => 200,
'captionText' => 'Активность на NFK Planet',
'captionText' => 'Activity for the last 2 months',
'labelRotation' => 45,
'fileName' => '../images/graphs/graph-players-2months.png',
'graphArea' => array(
Expand All @@ -176,15 +176,15 @@ function getGraph($vars = '') {
$daysLabel[] = $yearMonth;
}
$MyData = new pData();
$MyData->addPoints($matches,"Матчи");
$MyData->addPoints($matches,"Matches");
$MyData->addPoints($daysLabel,"Labels");
$MyData->setSerieDescription("Labels","Дни");
$MyData->setSerieDescription("Labels","Days");
$MyData->setAbscissa("Labels");
getGraph(array(
'graphData' => $MyData,
'graphH' => 1280,
'graphW' => 200,
'captionText' => 'Активность на NFK Planet',
'captionText' => 'Total number of matches',
'labelRotation' => 45,
'fileName' => '../images/graphs/graph-month-year-matches.png',
'graphArea' => array(
Expand Down Expand Up @@ -216,15 +216,15 @@ function getGraph($vars = '') {
$daysLabel[] = $yearMonth;
}
$MyData = new pData();
$MyData->addPoints($players,"Игроки");
$MyData->addPoints($players,"Players");
$MyData->addPoints($daysLabel,"Labels");
$MyData->setSerieDescription("Labels","Дни");
$MyData->setSerieDescription("Labels","Days");
$MyData->setAbscissa("Labels");
getGraph(array(
'graphData' => $MyData,
'graphH' => 1280,
'graphW' => 200,
'captionText' => 'Активность на NFK Planet',
'captionText' => 'Total number of players',
'labelRotation' => 45,
'fileName' => '../images/graphs/graph-month-year-players.png',
'graphArea' => array(
Expand Down Expand Up @@ -260,15 +260,15 @@ function getGraph($vars = '') {
$daysLabel[] = strftime('%m/%e%a',$time);// iconv("windows-1251", "UTF-8",strftime('%m/%#d%a',$time)); %e
}
$MyData = new pData();
$MyData->addPoints($players,"Игроки");
$MyData->addPoints($players,"Players");
$MyData->addPoints($daysLabel,"Labels");
$MyData->setSerieDescription("Labels","Дни");
$MyData->setSerieDescription("Labels","Days");
$MyData->setAbscissa("Labels");
getGraph(array(
'graphData' => $MyData,
'graphH' => 1280,
'graphW' => 200,
'captionText' => 'Игроки на NFK Planet',
'captionText' => 'Latest NFK Planet activity',
'labelRotation' => 45,
'graphArea' => array(
'x'=>35, 'y'=>16, 'h'=>-16, 'w'=>-40
Expand Down

0 comments on commit 898b41f

Please sign in to comment.