New Controllers added. Added Charts

This commit is contained in:
2017-09-19 22:01:00 +02:00
parent ccc5b07ddf
commit 930311b550
400 changed files with 30686 additions and 8 deletions

View File

@@ -0,0 +1,52 @@
<?php
require 'vendor/autoload.php';
use Jenssegers\Date\Date;
// Set the language
setlocale(LC_ALL, $argv[1] ?: 'en');
$months = array(
'january',
'february',
'march',
'april',
'may',
'june',
'july',
'august',
'september',
'october',
'november',
'december',
);
$days = array(
'monday',
'tuesday',
'wednesday',
'thursday',
'friday',
'saturday',
'sunday',
);
$translations = array();
foreach ($months as $month) {
$date = new Date($month);
$translation = strftime('%B', $date->getTimestamp());
$translations[$month] = $translation;
echo "'" . $month . "'\t=> '" . $translation . "',\n";
}
echo "\n";
foreach ($days as $day) {
$date = new Date($day);
$translation = strftime('%A', $date->getTimestamp());
$translations[$day] = $translation;
echo "'" . $day . "'\t=> '" . $translation . "',\n";
}