]> git.sesse.net Git - ccbs/commitdiff
Gettextify more (the rest?).
authorSteinar H. Gunderson <sesse@samfundet.no>
Sun, 17 Jul 2005 13:24:20 +0000 (13:24 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Sun, 17 Jul 2005 13:24:20 +0000 (13:24 +0000)
12 files changed:
html/do-add-tournament.pl
html/do-edit-scores.pl
html/do-start-round.pl
html/index.pl
html/players.pl
html/po/nb_NO.po
html/po/templates.pot
html/randomsongs.pl
html/set-active-tournament.pl
html/shorttitles.pl
html/songs.pl
html/tournaments.pl

index 50efd381a64dc90342aaa5ef83e03d3dcbcba8f0..57df3742460ad235d640c2c1223ce3ae5bea6d2a 100755 (executable)
@@ -18,13 +18,13 @@ my $machine = $cgi->param('machine');
 my $scoringsystem = $cgi->param('scoringsystem');
 
 if ($date !~ /^ ( \d{4} - \d\d - \d\d ) $/x) {
 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();
 }
 
 $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;
 
 $dbh->disconnect;
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,
index ff02c26a62a6d4b85582b52f8cce8e1ef1960afb..6a9738d3c1b2620443130e60162cd23d815ef89c 100755 (executable)
@@ -40,7 +40,7 @@ if ($round == 1) {
        # First of all, check that there are no null values!
        my $ref = $dbh->selectrow_hashref('SELECT COUNT(*) AS num_incomplete FROM scores WHERE tournament=? AND round=? AND (song IS NULL OR playmode IS NULL OR difficulty IS NULL OR chosen IS NULL or score IS NULL)', undef, $tournament, $round-1);
        if ($ref->{'num_incomplete'} != 0) {
        # First of all, check that there are no null values!
        my $ref = $dbh->selectrow_hashref('SELECT COUNT(*) AS num_incomplete FROM scores WHERE tournament=? AND round=? AND (song IS NULL OR playmode IS NULL OR difficulty IS NULL OR chosen IS NULL or score IS NULL)', undef, $tournament, $round-1);
        if ($ref->{'num_incomplete'} != 0) {
-               ccbs::user_error("Det er fortsatt $ref->{'num_incomplete'} sanger igjen i denne runden som ikke har alle data registrert.");
+               ccbs::user_error(_("There's still") . $ref->{'num_incomplete'} . _("songs left in this round which don't have all data registered.");
        }
 
        # Find out how many people will go on from the _current_ group (ie. the one
        }
 
        # Find out how many people will go on from the _current_ group (ie. the one
@@ -118,7 +118,7 @@ for my $g (1..$num_groups) {
                my $ref = $dbh->selectrow_hashref('SELECT * FROM machinesongs NATURAL JOIN songratings WHERE song NOT IN ( SELECT song FROM randomsongsused ) AND machine=( SELECT machine FROM tournaments WHERE tournament=? ) AND playmode=\'single\' AND difficulty=\'expert\' ORDER BY random() LIMIT 1',
                        undef, $tournament);
                if (!defined($ref)) {
                my $ref = $dbh->selectrow_hashref('SELECT * FROM machinesongs NATURAL JOIN songratings WHERE song NOT IN ( SELECT song FROM randomsongsused ) AND machine=( SELECT machine FROM tournaments WHERE tournament=? ) AND playmode=\'single\' AND difficulty=\'expert\' ORDER BY random() LIMIT 1',
                        undef, $tournament);
                if (!defined($ref)) {
-                       ccbs::user_error('Det er ikke flere sanger igjen i sangvelgeren!');
+                       ccbs::user_error(_("There aren't any songs left in the song selector!");
                }
                $dbh->do('INSERT INTO randomsongsused (song) VALUES (?)',
                        undef, $ref->{'song'});
                }
                $dbh->do('INSERT INTO randomsongsused (song) VALUES (?)',
                        undef, $ref->{'song'});
index 76ec1e8a00cd81cd343d402aedf8d7a5122bcca9..0d05ce4cd6ff87a09bc18e78a9258241059c6433 100755 (executable)
@@ -5,4 +5,4 @@ use strict;
 use warnings;
 
 ccbs::print_header();
 use warnings;
 
 ccbs::print_header();
-ccbs::process_template('index.tmpl', 'Forside');
+ccbs::process_template('index.tmpl', _('Front page'));
index 021b6ea8ce710e681d1d717db980cd9d2b8b63aa..af37f9e73e2389282fcfa31a08d47a291c1d0760 100755 (executable)
@@ -12,7 +12,7 @@ my $dbh = ccbs::db_connect();
 my $players = ccbs::db_fetch_all($dbh, 'SELECT scores.player,nick,countryname,clubname,count(*) AS num_songs,COUNT(DISTINCT song) AS num_unique_songs,COUNT(DISTINCT tournament) AS num_tournaments,AVG(score)::integer AS avg_score,MAX(score) AS high_score FROM scores NATURAL JOIN tournaments JOIN players ON scores.player=players.player JOIN countries ON players.country=countries.country NATURAL LEFT JOIN clubs WHERE scoringsystem=1 GROUP BY scores.player,nick,countryname,clubname ORDER BY LOWER(nick)');
 
 ccbs::print_header();
 my $players = ccbs::db_fetch_all($dbh, 'SELECT scores.player,nick,countryname,clubname,count(*) AS num_songs,COUNT(DISTINCT song) AS num_unique_songs,COUNT(DISTINCT tournament) AS num_tournaments,AVG(score)::integer AS avg_score,MAX(score) AS high_score FROM scores NATURAL JOIN tournaments JOIN players ON scores.player=players.player JOIN countries ON players.country=countries.country NATURAL LEFT JOIN clubs WHERE scoringsystem=1 GROUP BY scores.player,nick,countryname,clubname ORDER BY LOWER(nick)');
 
 ccbs::print_header();
-ccbs::process_template('players.tmpl', 'Spillere', {
+ccbs::process_template('players.tmpl', _('Players'), {
        players => $players,
 });
 $dbh->disconnect;
        players => $players,
 });
 $dbh->disconnect;
index d2c54b7d62884eb8f2d86dd5e0df70a0fed59961..88ec465f9495f2feb8447c9f10a7d87ae78aaff7 100644 (file)
@@ -34,7 +34,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: ccbs--mainline- 0.1\n"
 "Report-Msgid-Bugs-To: \n"
 msgstr ""
 "Project-Id-Version: ccbs--mainline- 0.1\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "PO-Revision-Date: 2005-07-17 01:55+0200\n"
 "Last-Translator: Steinar H. Gunderson <sgunderson@bigfoot.com>\n"
 "Language-Team: Norwegian <no@translate.freefriends.org>\n"
 "PO-Revision-Date: 2005-07-17 01:55+0200\n"
 "Last-Translator: Steinar H. Gunderson <sgunderson@bigfoot.com>\n"
 "Language-Team: Norwegian <no@translate.freefriends.org>\n"
@@ -127,12 +127,15 @@ msgstr "Storskjerm"
 msgid "<a href=\"set-active-tournament.pl\">Set active tournament</a>"
 msgstr "<a href=\"set-active-tournament.pl\">Sett aktiv turnering</a>"
 
 msgid "<a href=\"set-active-tournament.pl\">Set active tournament</a>"
 msgstr "<a href=\"set-active-tournament.pl\">Sett aktiv turnering</a>"
 
+#: index.pl:8
 msgid "Front page"
 msgstr "Forside"
 
 msgid "Front page"
 msgstr "Forside"
 
+#: tournaments.pl:11
 msgid "Tournaments"
 msgstr "Turneringer"
 
 msgid "Tournaments"
 msgstr "Turneringer"
 
+#: randomsongs.pl:12
 msgid "Song selector"
 msgstr "Sangvelger"
 
 msgid "Song selector"
 msgstr "Sangvelger"
 
@@ -148,10 +151,58 @@ msgstr "Beklager, databasen står i no-admin-modus."
 msgid "Internal Server Error"
 msgstr "Intern feil"
 
 msgid "Internal Server Error"
 msgstr "Intern feil"
 
-#: add-tournament.pl:16
+#: add-tournament.pl:16 do-add-tournament.pl:28
 msgid "Add tournament"
 msgstr "Legg til turnering"
 
 msgid "Add tournament"
 msgstr "Legg til turnering"
 
+#: do-add-tournament.pl:21
+msgid "Invalid date (must be of the form YYYY-MM-DD)"
+msgstr ""
+
+#: do-edit-scores.pl:50
+msgid "The song"
+msgstr "Sangen"
+
+#: do-edit-scores.pl:50
+msgid "doesn't have steps for "
+msgstr "har ikke steps for"
+
+#: do-edit-scores.pl:51
+msgid " on "
+msgstr " på "
+
+#: do-edit-scores.pl:60
+msgid "All scores must be between 0 and 10000 (inclusive)."
+msgstr "Alle poengsummer må være mellom 0 og 10000 (inklusive)."
+
+#: do-start-round.pl:43
+msgid "There's still"
+msgstr "Det er fortsatt"
+
+#: do-start-round.pl:43
+msgid "songs left in this round which don't have all data registered."
+msgstr "sanger igjen i denne runden som ikke er fullt registrert."
+
+#: do-start-round.pl:121
+msgid "There aren't any songs left in the song selector!"
+msgstr "Det er ikke flere sanger igjen i sangvelgeren!"
+
+#: players.pl:15
+msgid "Players"
+msgstr "Spillere"
+
+#: set-active-tournament.pl:13
+msgid "Set active tournament"
+msgstr "Sett aktiv turnering"
+
+#: shorttitles.pl:16
+msgid "Short titles"
+msgstr "Korte titler"
+
+#: songs.pl:15
+msgid "Songs"
+msgstr "Sanger"
+
 msgid "Nick"
 msgstr "Nick"
 
 msgid "Nick"
 msgstr "Nick"
 
@@ -273,9 +324,6 @@ msgstr "Sett som betalt"
 msgid "Remove"
 msgstr "Fjern"
 
 msgid "Remove"
 msgstr "Fjern"
 
-msgid "Set active tournament"
-msgstr "Sett aktiv turnering"
-
 msgid ""
 "This function sets what tournament is active (that is, what the big screen\n"
 "  is to show information from)."
 msgid ""
 "This function sets what tournament is active (that is, what the big screen\n"
 "  is to show information from)."
index b29133a4f59001b1af873fea3aac0590fce1d43a..bf9dc0fbe2456d8baffdc5ccfd17b049897d5d71 100644 (file)
@@ -44,42 +44,42 @@ msgstr ""
 "#-#-#-#-#  add-tournament.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "#-#-#-#-#  add-tournament.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  do-add-tournament.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  do-add-tournament.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  error.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  error.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  index.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  index.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  main.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  main.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  messages.pot (PACKAGE VERSION)  #-#-#-#-#\n"
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  messages.pot (PACKAGE VERSION)  #-#-#-#-#\n"
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-07-17 15:15+0200\n"
+"POT-Creation-Date: 2005-07-17 15:22+0200\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -89,84 +89,84 @@ msgstr ""
 "#-#-#-#-#  players.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "#-#-#-#-#  players.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  player.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  player.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  randomsongs.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  randomsongs.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  registration.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  registration.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  set-active-tournament.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  set-active-tournament.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  shorttitles.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  shorttitles.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  show-tournament.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  show-tournament.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  songratings.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  songratings.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  songs.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  songs.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  song.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  song.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  tournaments.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  tournaments.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  user-error.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "#-#-#-#-#  user-error.tmpl.pot (ccbs)  #-#-#-#-#\n"
 "Project-Id-Version: ccbs\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2005-15-17 15:15+0200\n"
+"POT-Creation-Date: 2005-22-17 15:22+0200\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
 "MIME-Version: 1.0\n"
 "Content-Type: text/plain; charset=utf-8\n"
 "Content-Transfer-Encoding: 8bit\n"
@@ -250,12 +250,15 @@ msgstr ""
 msgid "<a href=\"set-active-tournament.pl\">Set active tournament</a>"
 msgstr ""
 
 msgid "<a href=\"set-active-tournament.pl\">Set active tournament</a>"
 msgstr ""
 
+#: index.pl:8
 msgid "Front page"
 msgstr ""
 
 msgid "Front page"
 msgstr ""
 
+#: tournaments.pl:11
 msgid "Tournaments"
 msgstr ""
 
 msgid "Tournaments"
 msgstr ""
 
+#: randomsongs.pl:12
 msgid "Song selector"
 msgstr ""
 
 msgid "Song selector"
 msgstr ""
 
@@ -271,10 +274,58 @@ msgstr ""
 msgid "Internal Server Error"
 msgstr ""
 
 msgid "Internal Server Error"
 msgstr ""
 
-#: add-tournament.pl:16
+#: add-tournament.pl:16 do-add-tournament.pl:28
 msgid "Add tournament"
 msgstr ""
 
 msgid "Add tournament"
 msgstr ""
 
+#: do-add-tournament.pl:21
+msgid "Invalid date (must be of the form YYYY-MM-DD)"
+msgstr ""
+
+#: do-edit-scores.pl:50
+msgid "The song"
+msgstr ""
+
+#: do-edit-scores.pl:50
+msgid "doesn't have steps for "
+msgstr ""
+
+#: do-edit-scores.pl:51
+msgid " on "
+msgstr ""
+
+#: do-edit-scores.pl:60
+msgid "All scores must be between 0 and 10000 (inclusive)."
+msgstr ""
+
+#: do-start-round.pl:43
+msgid "There's still"
+msgstr ""
+
+#: do-start-round.pl:43
+msgid "songs left in this round which don't have all data registered."
+msgstr ""
+
+#: do-start-round.pl:121
+msgid "There aren't any songs left in the song selector!"
+msgstr ""
+
+#: players.pl:15
+msgid "Players"
+msgstr ""
+
+#: set-active-tournament.pl:13
+msgid "Set active tournament"
+msgstr ""
+
+#: shorttitles.pl:16
+msgid "Short titles"
+msgstr ""
+
+#: songs.pl:15
+msgid "Songs"
+msgstr ""
+
 msgid "Nick"
 msgstr ""
 
 msgid "Nick"
 msgstr ""
 
@@ -383,9 +434,6 @@ msgstr ""
 msgid "Remove"
 msgstr ""
 
 msgid "Remove"
 msgstr ""
 
-msgid "Set active tournament"
-msgstr ""
-
 msgid ""
 "This function sets what tournament is active (that is, what the big screen\n"
 "  is to show information from)."
 msgid ""
 "This function sets what tournament is active (that is, what the big screen\n"
 "  is to show information from)."
index daa36cb529d90b0ada9696cb20c57613a4202887..6a3ec9c14dacfba0abf1c39d5305cadf1e0a5bcf 100755 (executable)
@@ -9,7 +9,7 @@ my $dbh = ccbs::db_connect();
 my $ref = $dbh->selectrow_hashref('SELECT COUNT(*) AS num_used FROM randomsongsused');
 
 ccbs::print_header();
 my $ref = $dbh->selectrow_hashref('SELECT COUNT(*) AS num_used FROM randomsongsused');
 
 ccbs::print_header();
-ccbs::process_template('randomsongs.tmpl', 'Sangvelger', {
+ccbs::process_template('randomsongs.tmpl', _('Song selector'), {
                num_used => $ref->{'num_used'}
        });
 
                num_used => $ref->{'num_used'}
        });
 
index 4a17ef2ef6e925c807db0cbc01f8868b3b6b82bf..f3e1a7b300e432e4a8132ea709cba89724a83365 100755 (executable)
@@ -10,7 +10,7 @@ my $ref = $dbh->selectrow_hashref('SELECT * FROM bigscreen.active_tournament');
 my $active_tournament = (defined($ref)) ? $ref->{'tournament'} : -1;
 
 ccbs::print_header();
 my $active_tournament = (defined($ref)) ? $ref->{'tournament'} : -1;
 
 ccbs::print_header();
-ccbs::process_template('set-active-tournament.tmpl', 'Sett aktiv turnering', {
+ccbs::process_template('set-active-tournament.tmpl', _('Set active tournament'), {
                tournaments => $tournaments,
                active_tournament => $active_tournament
        });
                tournaments => $tournaments,
                active_tournament => $active_tournament
        });
index c6b93c8dc8f7b0c1d22042451b55eccadeaffc64..aab0766e4fe14cf75472b9e76125ff42add771f6 100755 (executable)
@@ -13,7 +13,7 @@ my $dbh = ccbs::db_connect();
 my $songs = ccbs::db_fetch_all($dbh, 'SELECT song,title,shorttitle FROM songs NATURAL LEFT JOIN songshorttitles ORDER BY LOWER(title)');
 
 ccbs::print_header();
 my $songs = ccbs::db_fetch_all($dbh, 'SELECT song,title,shorttitle FROM songs NATURAL LEFT JOIN songshorttitles ORDER BY LOWER(title)');
 
 ccbs::print_header();
-ccbs::process_template('shorttitles.tmpl', 'Korte titler', {
+ccbs::process_template('shorttitles.tmpl', _('Short titles'), {
        songs => $songs,
 });
 $dbh->disconnect;
        songs => $songs,
 });
 $dbh->disconnect;
index 2ac52a1adfcdeac2231cae2532fb77e609b7c206..8d67cb6cc5d4772034aac236d23c4409a3decf59 100755 (executable)
@@ -12,7 +12,7 @@ my $dbh = ccbs::db_connect();
 my $songs = ccbs::db_fetch_all($dbh, 'SELECT machine,machinename,song,title,artist,avg_score,stddev_score,high_score,high_score_player,high_score_nick FROM machinesongs NATURAL JOIN songs NATURAL JOIN machines NATURAL LEFT JOIN ( SELECT song,AVG(score)::integer AS avg_score,STDDEV(score)::integer AS stddev_score FROM scores JOIN tournaments ON scores.tournament=tournaments.tournament WHERE scoringsystem=1 GROUP BY song ) t1 NATURAL LEFT JOIN ( SELECT DISTINCT ON (song) song,player AS high_score_player,nick AS high_score_nick,score AS high_score FROM scores NATURAL JOIN players JOIN tournaments ON scores.tournament=tournaments.tournament WHERE scoringsystem=1 ORDER BY song,score DESC ) t2 ORDER BY machine,LOWER(title)');
 
 ccbs::print_header();
 my $songs = ccbs::db_fetch_all($dbh, 'SELECT machine,machinename,song,title,artist,avg_score,stddev_score,high_score,high_score_player,high_score_nick FROM machinesongs NATURAL JOIN songs NATURAL JOIN machines NATURAL LEFT JOIN ( SELECT song,AVG(score)::integer AS avg_score,STDDEV(score)::integer AS stddev_score FROM scores JOIN tournaments ON scores.tournament=tournaments.tournament WHERE scoringsystem=1 GROUP BY song ) t1 NATURAL LEFT JOIN ( SELECT DISTINCT ON (song) song,player AS high_score_player,nick AS high_score_nick,score AS high_score FROM scores NATURAL JOIN players JOIN tournaments ON scores.tournament=tournaments.tournament WHERE scoringsystem=1 ORDER BY song,score DESC ) t2 ORDER BY machine,LOWER(title)');
 
 ccbs::print_header();
-ccbs::process_template('songs.tmpl', 'Sanger', {
+ccbs::process_template('songs.tmpl', _('Songs'), {
        songs => $songs,
 });
 $dbh->disconnect;
        songs => $songs,
 });
 $dbh->disconnect;
index 8417b3c3af24bdd8e4baa57ea2e95607a739a271..fce241e83fca1ce25b96153ef2cb59f651cc58fe 100755 (executable)
@@ -8,5 +8,5 @@ my $dbh = ccbs::db_connect();
 my $tournaments = ccbs::db_fetch_all($dbh, 'SELECT * FROM tournaments NATURAL JOIN seasons ORDER BY season, date');
 
 ccbs::print_header();
 my $tournaments = ccbs::db_fetch_all($dbh, 'SELECT * FROM tournaments NATURAL JOIN seasons ORDER BY season, date');
 
 ccbs::print_header();
-ccbs::process_template('tournaments.tmpl', 'Turneringer', { tournaments => $tournaments });
+ccbs::process_template('tournaments.tmpl', _('Tournaments'), { tournaments => $tournaments });
 $dbh->disconnect;
 $dbh->disconnect;