use strict;
use warnings;
+ccbs::admin_only();
+
my $dbh = ccbs::db_connect();
my $cgi = new CGI;
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;