From 7ed0cd06417e24309ebcb2250809960c64b082fd Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 20 Jul 2005 22:39:03 +0000 Subject: [PATCH] i18nize the season name in show-tournament.pl as well. --- html/show-tournament.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/html/show-tournament.pl b/html/show-tournament.pl index d5173ba..36679ed 100755 --- a/html/show-tournament.pl +++ b/html/show-tournament.pl @@ -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); -- 2.39.5