]> git.sesse.net Git - ccbs/blobdiff - html/do-edit-scores.pl
Gettextify more (the rest?).
[ccbs] / html / do-edit-scores.pl
index 898d5dbc4f9c0bacadae2db46cfc5d75f9aa2e84..9dc81ffa1bb7c8c0398b8ad89ea025db10dea008 100755 (executable)
@@ -47,8 +47,8 @@ for my $p ($cgi->param()) {
                                # Fetch the name of the song if we can
                                $ref = $dbh->selectrow_hashref('SELECT title FROM songs WHERE song=?',
                                        undef, $cgi->param("song$1-$2"));
                                # Fetch the name of the song if we can
                                $ref = $dbh->selectrow_hashref('SELECT title FROM songs WHERE song=?',
                                        undef, $cgi->param("song$1-$2"));
-                               ccbs::user_error("Sangen $ref->{'title'} har ikke steps for " .
-                                       $cgi->param("playmode$1-$2") . " " . $cgi->param("difficulty$1-$2") . " på ".
+                               ccbs::user_error(_("The song") . $ref->{'title'} _("doesn't have steps for ") .
+                                       $cgi->param("playmode$1-$2") . " " . $cgi->param("difficulty$1-$2") . _(" on ").
                                        $tournamentdata->{'machinename'} . ".");
                        }
                        $checked_songs{"$1-$2"} = 1;
                                        $tournamentdata->{'machinename'} . ".");
                        }
                        $checked_songs{"$1-$2"} = 1;
@@ -57,7 +57,7 @@ for my $p ($cgi->param()) {
 
        if ($p =~ /^score(\d+)-(\d+)/) {
                if (defined($val) && ($val < 0 || $val > 10000)) {
 
        if ($p =~ /^score(\d+)-(\d+)/) {
                if (defined($val) && ($val < 0 || $val > 10000)) {
-                       ccbs::user_error("Alle poengsummer må være mellom 0 og 10000 (inklusive).");
+                       ccbs::user_error(_("All scores must be between 0 and 10000 (inclusive)."));
                }
        
                $dbh->do('UPDATE scores SET score=? WHERE tournament=? AND round=? AND parallel=? AND player=? AND songnumber=?', undef,
                }
        
                $dbh->do('UPDATE scores SET score=? WHERE tournament=? AND round=? AND parallel=? AND player=? AND songnumber=?', undef,