X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=html%2Fdo-add-tournament.pl;h=57df3742460ad235d640c2c1223ce3ae5bea6d2a;hb=a317762dab2b775334cc85a43b6fe2e3c2097eab;hp=50efd381a64dc90342aaa5ef83e03d3dcbcba8f0;hpb=9b92b979d4647472f0beefae30c08855a3284966;p=ccbs diff --git a/html/do-add-tournament.pl b/html/do-add-tournament.pl index 50efd38..57df374 100755 --- a/html/do-add-tournament.pl +++ b/html/do-add-tournament.pl @@ -18,13 +18,13 @@ my $machine = $cgi->param('machine'); my $scoringsystem = $cgi->param('scoringsystem'); if ($date !~ /^ ( \d{4} - \d\d - \d\d ) $/x) { - ccbs::user_error("Ugyldig dato (må være på formen YYYY-MM-DD)."); + ccbs::user_error(_("Invalid date (must be of the form YYYY-MM-DD)")); } $dbh->do('INSERT INTO tournaments (season, tournamentname, country, location, date, machine, scoringsystem) VALUES (?,?,?,?,?,?,?)', undef, $season, $name, $country, $place, $date, $machine, $scoringsystem); ccbs::print_header(); -ccbs::process_template('do-add-tournament.tmpl', 'Legg til turnering', {}); +ccbs::process_template('do-add-tournament.tmpl', _('Add tournament'), {}); $dbh->disconnect;