]> git.sesse.net Git - ccbs/blobdiff - html/show-tournament.pl
i18nize the season name in show-tournament.pl as well.
[ccbs] / html / show-tournament.pl
index d5173bac97239d730777de776e215f9401fffa37..36679edb42fe6ec8c106ee36c2685edd81f6484d 100755 (executable)
@@ -11,6 +11,10 @@ my $dbh = ccbs::db_connect();
 
 my $tournament = $dbh->selectrow_hashref('SELECT * FROM tournaments NATURAL JOIN seasons NATURAL JOIN countries NATURAL JOIN machines NATURAL JOIN scoringsystems WHERE tournament=?', undef, $id);
 
+# Push season name through i18n
+$tournament = { %$tournament, seasonname => Locale::gettext::gettext($tournament->{'seasonname'}) };
+
+
 my $rankings;
 if ($tournament->{'country'} == 1) {
        $rankings = ccbs::db_fetch_all($dbh, 'SELECT ranking,player,nick || \' (\' || countrycode::varchar || \')\' AS nick,COALESCE(points,-1) AS points FROM tournamentrankings NATURAL JOIN players NATURAL JOIN countries WHERE tournament=? ORDER BY ranking', $id);