From f023b81e6f62c73fa8c9b7ce975b4248605781dd Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Sat, 28 Sep 2019 10:42:05 +0200 Subject: [PATCH] Translated the template --- dist/template.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/template.php b/dist/template.php index da24123..35d7ec1 100644 --- a/dist/template.php +++ b/dist/template.php @@ -35,15 +35,15 @@ $reader->read($pairingfile); // Below is an example of what can be used. Feel free to modify this. echo '

' . $reader->getTournament()->getName() . '

' . PHP_EOL; -foreach($reader->getTournament()->getRounds() as $round) { - echo '

Ronde ' . ($round->getRoundNo() + 1) . ': ' . $round->getDate()->format('d/m/Y') . '

' . PHP_EOL; +foreach ($reader->getTournament()->getRounds() as $round) { + echo '

Round ' . ($round->getRoundNo() + 1) . ': ' . $round->getDate()->format('m/d/Y') . '

' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; - echo '' . PHP_EOL; + echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; - foreach($round->getGames() as $game) { + foreach ($round->getGames() as $game) { echo '' . PHP_EOL; echo '' . PHP_EOL; echo '' . PHP_EOL; @@ -59,7 +59,7 @@ foreach($reader->getTournament()->getRounds() as $round) { } echo implode(', ', $bye); echo '

' . PHP_EOL; - echo '

Afwezig: '; + echo '

Absent: '; $bye = []; foreach ($round->getAbsent() as $pairing) { $bye[] = $pairing->getPlayer()->getName(); @@ -68,10 +68,10 @@ foreach($reader->getTournament()->getRounds() as $round) { echo '

' . PHP_EOL; } -echo '

Klassement

' . PHP_EOL; +echo '

Rankings

' . PHP_EOL; echo '
WitZwartResultaat
WhiteBlackResult
' . $game->getWhite()->getPlayer()->getName() . '' . $game->getBlack()->getPlayer()->getName() . '
' . PHP_EOL; echo '' . PHP_EOL; -echo '' . PHP_EOL; +echo '' . PHP_EOL; foreach ($reader->getTournament()->getTieBreaks() as $tiebreak) { echo '' . PHP_EOL; }
Naam (elo)
Name (elo)' . $tiebreak->getValue() . '