From: Steinar H. Gunderson Date: Wed, 20 Jul 2005 22:39:03 +0000 (+0000) Subject: i18nize the season name in show-tournament.pl as well. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=7ed0cd06417e24309ebcb2250809960c64b082fd i18nize the season name in show-tournament.pl as well. --- 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);