From: Steinar H. Gunderson Date: Wed, 20 Jul 2005 17:51:58 +0000 (+0000) Subject: Translate season names. X-Git-Url: https://git.sesse.net/?p=ccbs;a=commitdiff_plain;h=cb7cc0a8d2f769ded4764a1d5079b6705d70e9a5 Translate season names. --- diff --git a/html/po/nb_NO.po b/html/po/nb_NO.po index c314b9e..dac029f 100644 --- a/html/po/nb_NO.po +++ b/html/po/nb_NO.po @@ -34,7 +34,7 @@ msgid "" msgstr "" "Project-Id-Version: ccbs--mainline- 0.1\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-20-20 13:20+0000\n" +"POT-Creation-Date: 2005-50-20 19:50+0200\n" "PO-Revision-Date: 2005-07-17 01:55+0200\n" "Last-Translator: Steinar H. Gunderson \n" "Language-Team: Norwegian \n" @@ -264,6 +264,27 @@ msgstr "Korte titler" msgid "Songs" msgstr "Sanger" +msgid "Nick" +msgstr "Nick" + +msgid "Country" +msgstr "Land" + +msgid "Club" +msgstr "Klubb" + +msgid "Songs played" +msgstr "Sanger spilt" + +msgid "Different played" +msgstr "Forskjellige spilt" + +msgid "High score" +msgstr "Rekord" + +msgid "Average" +msgstr "Gjennomsnitt" + msgid "General facts" msgstr "Generelle fakta" @@ -276,15 +297,6 @@ msgstr "Klubb:" msgid "Edit player" msgstr "Rediger spiller" -msgid "Nick" -msgstr "Nick" - -msgid "Country" -msgstr "Land" - -msgid "Club" -msgstr "Klubb" - msgid "" "\n" "\t \n" @@ -309,18 +321,6 @@ msgstr "Arrangement" msgid "All songs" msgstr "Alle sanger" -msgid "Songs played" -msgstr "Sanger spilt" - -msgid "Different played" -msgstr "Forskjellige spilt" - -msgid "High score" -msgstr "Rekord" - -msgid "Average" -msgstr "Gjennomsnitt" - msgid "At the moment," msgstr "For øyeblikket er" @@ -385,6 +385,41 @@ msgstr "Sett som betalt" msgid "Remove" msgstr "Fjern" +msgid "European Cup" +msgstr "" + +msgid "Challenge Cup 2003" +msgstr "" + +msgid "Challenge Cup 2004" +msgstr "" + +msgid "Challenge Cup 2005" +msgstr "" + +msgid "Beginner" +msgstr "" + +#, fuzzy +msgid "Geneva Tournament" +msgstr "Turneringer" + +msgid "International" +msgstr "" + +msgid "Standalone" +msgstr "" + +#, fuzzy +msgid "Test tournament" +msgstr "Turneringer" + +msgid "Norwegian national championship" +msgstr "" + +msgid "EuroMix 2 series 2002" +msgstr "" + msgid "" "This function sets what tournament is active (that is, what the big screen\n" " is to show information from)." @@ -540,9 +575,6 @@ msgstr "C" msgid "" msgstr "" -msgid "Best scores" -msgstr "Beste scores" - msgid "Single" msgstr "Single" @@ -561,6 +593,9 @@ msgstr "Standardavvik" msgid "by" msgstr "av" +msgid "Best scores" +msgstr "Beste scores" + msgid "registration" msgstr "registrering" diff --git a/html/po/nn_NO.po b/html/po/nn_NO.po index 5e05afe..129623d 100644 --- a/html/po/nn_NO.po +++ b/html/po/nn_NO.po @@ -44,12 +44,12 @@ msgid "" msgstr "" "Project-Id-Version: ccbs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-50-20 19:50+0200\n" "PO-Revision-Date: 2005-07-20 14:19+0200\n" "Last-Translator: Knut Auvor Grythe \n" "Language-Team: Norwegian Nynorsk \n" "MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=utf-8\n" +"Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" "#-#-#-#-# add-tournament.tmpl.pot (ccbs) #-#-#-#-#\n" "#-#-#-#-# do-add-tournament.tmpl.pot (ccbs) #-#-#-#-#\n" @@ -293,6 +293,27 @@ msgstr "Korte titlar" msgid "Songs" msgstr "Songar" +msgid "Nick" +msgstr "Kallenamn" + +msgid "Country" +msgstr "Land" + +msgid "Club" +msgstr "Klubb" + +msgid "Songs played" +msgstr "Songar spelt" + +msgid "Different played" +msgstr "Ulike spelt" + +msgid "High score" +msgstr "Rekord" + +msgid "Average" +msgstr "Gjennomsnitt" + msgid "General facts" msgstr "Generelle fakta" @@ -305,15 +326,6 @@ msgstr "Klubb:" msgid "Edit player" msgstr "Rediger spelar" -msgid "Nick" -msgstr "Kallenamn" - -msgid "Country" -msgstr "Land" - -msgid "Club" -msgstr "Klubb" - msgid "" "\n" "\t \n" @@ -338,18 +350,6 @@ msgstr "Arrangement" msgid "All songs" msgstr "Alle songar" -msgid "Songs played" -msgstr "Songar spelt" - -msgid "Different played" -msgstr "Ulike spelt" - -msgid "High score" -msgstr "Rekord" - -msgid "Average" -msgstr "Gjennomsnitt" - msgid "At the moment," msgstr "Nett no er" @@ -413,6 +413,41 @@ msgstr "Sett som betala" msgid "Remove" msgstr "Fjern" +msgid "European Cup" +msgstr "" + +msgid "Challenge Cup 2003" +msgstr "" + +msgid "Challenge Cup 2004" +msgstr "" + +msgid "Challenge Cup 2005" +msgstr "" + +msgid "Beginner" +msgstr "" + +#, fuzzy +msgid "Geneva Tournament" +msgstr "Turneringar" + +msgid "International" +msgstr "" + +msgid "Standalone" +msgstr "" + +#, fuzzy +msgid "Test tournament" +msgstr "Turneringar" + +msgid "Norwegian national championship" +msgstr "" + +msgid "EuroMix 2 series 2002" +msgstr "" + msgid "" "This function sets what tournament is active (that is, what the big screen\n" " is to show information from)." @@ -566,9 +601,6 @@ msgstr "C" msgid "" msgstr "" -msgid "Best scores" -msgstr "Beste poengsummar" - msgid "Single" msgstr "Enkel" @@ -587,6 +619,9 @@ msgstr "Standardavvik" msgid "by" msgstr "av" +msgid "Best scores" +msgstr "Beste poengsummar" + msgid "registration" msgstr "registrering" diff --git a/html/po/templates.pot b/html/po/templates.pot index 0561da4..1835c22 100644 --- a/html/po/templates.pot +++ b/html/po/templates.pot @@ -16,26 +16,28 @@ # This file is distributed under the same license as the PACKAGE package. # FIRST AUTHOR , YEAR. # -# #-#-#-#-# player.tmpl.pot (ccbs) #-#-#-#-# -# ccbs template file for templates/player.tmpl # #-#-#-#-# players.tmpl.pot (ccbs) #-#-#-#-# # ccbs template file for templates/players.tmpl +# #-#-#-#-# player.tmpl.pot (ccbs) #-#-#-#-# +# ccbs template file for templates/player.tmpl # #-#-#-#-# randomsongs.tmpl.pot (ccbs) #-#-#-#-# # ccbs template file for templates/randomsongs.tmpl # #-#-#-#-# registration.tmpl.pot (ccbs) #-#-#-#-# # ccbs template file for templates/registration.tmpl +# #-#-#-#-# seasons.pot (ccbs) #-#-#-#-# +# ccbs template file for seasons # #-#-#-#-# set-active-tournament.tmpl.pot (ccbs) #-#-#-#-# # ccbs template file for templates/set-active-tournament.tmpl # #-#-#-#-# shorttitles.tmpl.pot (ccbs) #-#-#-#-# # ccbs template file for templates/shorttitles.tmpl # #-#-#-#-# show-tournament.tmpl.pot (ccbs) #-#-#-#-# # ccbs template file for templates/show-tournament.tmpl -# #-#-#-#-# song.tmpl.pot (ccbs) #-#-#-#-# -# ccbs template file for templates/song.tmpl # #-#-#-#-# songratings.tmpl.pot (ccbs) #-#-#-#-# # ccbs template file for templates/songratings.tmpl # #-#-#-#-# songs.tmpl.pot (ccbs) #-#-#-#-# # ccbs template file for templates/songs.tmpl +# #-#-#-#-# song.tmpl.pot (ccbs) #-#-#-#-# +# ccbs template file for templates/song.tmpl # #-#-#-#-# tournaments.tmpl.pot (ccbs) #-#-#-#-# # ccbs template file for templates/tournaments.tmpl # #-#-#-#-# user-error.tmpl.pot (ccbs) #-#-#-#-# @@ -46,136 +48,143 @@ msgstr "" "#-#-#-#-# add-tournament.tmpl.pot (ccbs) #-#-#-#-#\n" "Project-Id-Version: ccbs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-50-20 19:50+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-50-20 19:50+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-50-20 19:50+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-50-20 19:50+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" "#-#-#-#-# main-pg.tmpl.pot (ccbs) #-#-#-#-#\n" "Project-Id-Version: ccbs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-50-20 19:50+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-50-20 19:50+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" -"POT-Creation-Date: 2005-07-20 13:21+0000\n" +"POT-Creation-Date: 2005-07-20 19:50+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=UTF-8\n" "Content-Transfer-Encoding: 8bit\n" -"#-#-#-#-# player.tmpl.pot (ccbs) #-#-#-#-#\n" +"#-#-#-#-# players.tmpl.pot (ccbs) #-#-#-#-#\n" "Project-Id-Version: ccbs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" -"#-#-#-#-# players.tmpl.pot (ccbs) #-#-#-#-#\n" +"#-#-#-#-# player.tmpl.pot (ccbs) #-#-#-#-#\n" "Project-Id-Version: ccbs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+0200\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=utf-8\n" +"Content-Transfer-Encoding: 8bit\n" +"#-#-#-#-# seasons.pot (ccbs) #-#-#-#-#\n" +"Project-Id-Version: ccbs\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2005-50-20 19:50+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+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" +"#-#-#-#-# songratings.tmpl.pot (ccbs) #-#-#-#-#\n" "Project-Id-Version: ccbs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+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" +"#-#-#-#-# songs.tmpl.pot (ccbs) #-#-#-#-#\n" "Project-Id-Version: ccbs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+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" +"#-#-#-#-# song.tmpl.pot (ccbs) #-#-#-#-#\n" "Project-Id-Version: ccbs\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+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" -"POT-Creation-Date: 2005-21-20 13:21+0000\n" +"POT-Creation-Date: 2005-51-20 19:51+0200\n" "MIME-Version: 1.0\n" "Content-Type: text/plain; charset=utf-8\n" "Content-Transfer-Encoding: 8bit\n" @@ -382,25 +391,37 @@ msgstr "" msgid "Songs" msgstr "" -msgid "General facts" +msgid "Nick" msgstr "" -msgid "Nick:" +msgid "Country" msgstr "" -msgid "Club:" +msgid "Club" msgstr "" -msgid "Edit player" +msgid "Songs played" msgstr "" -msgid "Nick" +msgid "Different played" msgstr "" -msgid "Country" +msgid "High score" msgstr "" -msgid "Club" +msgid "Average" +msgstr "" + +msgid "General facts" +msgstr "" + +msgid "Nick:" +msgstr "" + +msgid "Club:" +msgstr "" + +msgid "Edit player" msgstr "" msgid "" @@ -424,18 +445,6 @@ msgstr "" msgid "All songs" msgstr "" -msgid "Songs played" -msgstr "" - -msgid "Different played" -msgstr "" - -msgid "High score" -msgstr "" - -msgid "Average" -msgstr "" - msgid "At the moment," msgstr "" @@ -490,6 +499,39 @@ msgstr "" msgid "Remove" msgstr "" +msgid "European Cup" +msgstr "" + +msgid "Challenge Cup 2003" +msgstr "" + +msgid "Challenge Cup 2004" +msgstr "" + +msgid "Challenge Cup 2005" +msgstr "" + +msgid "Beginner" +msgstr "" + +msgid "Geneva Tournament" +msgstr "" + +msgid "International" +msgstr "" + +msgid "Standalone" +msgstr "" + +msgid "Test tournament" +msgstr "" + +msgid "Norwegian national championship" +msgstr "" + +msgid "EuroMix 2 series 2002" +msgstr "" + msgid "" "This function sets what tournament is active (that is, what the big screen\n" " is to show information from)." @@ -624,9 +666,6 @@ msgstr "" msgid "" msgstr "" -msgid "Best scores" -msgstr "" - msgid "Single" msgstr "" @@ -645,6 +684,9 @@ msgstr "" msgid "by" msgstr "" +msgid "Best scores" +msgstr "" + msgid "registration" msgstr "" diff --git a/intl/make-all-pot.sh b/intl/make-all-pot.sh index 51e4eb3..0e4958b 100755 --- a/intl/make-all-pot.sh +++ b/intl/make-all-pot.sh @@ -7,6 +7,9 @@ rm -f templates/*.pot # Extract strings from all the Perl code xgettext --keyword=_ --from-code=utf-8 -o templates/messages.pot -L Perl *.{pm,pl} +# ...from the database +perl ../intl/make-season-pot.pl > templates/seasons.pot + # ...and from all the TT templates for FILE in templates/*.tmpl; do echo $FILE... diff --git a/intl/make-season-pot.pl b/intl/make-season-pot.pl new file mode 100644 index 0000000..60c5778 --- /dev/null +++ b/intl/make-season-pot.pl @@ -0,0 +1,30 @@ +#! /usr/bin/perl +use strict; +use warnings; +use ccbs; + +my $dbh = ccbs::db_connect(); +my $seasons = ccbs::db_fetch_all($dbh, 'SELECT seasonname FROM seasons'); +my $date = `date +"%Y-%M-%d %H:%M%z"`; # pah :-) +chomp $date; + +print <<"EOF"; +# ccbs template file for seasons +msgid "" +msgstr "" +"Project-Id-Version: ccbs\\n" +"Report-Msgid-Bugs-To: \\n" +"POT-Creation-Date: $date\\n" +"MIME-Version: 1.0\\n" +"Content-Type: text/plain; charset=utf-8\\n" +"Content-Transfer-Encoding: 8bit\\n" + +EOF + +for my $s (@$seasons) { + my $n = $s->{'seasonname'}; + print "msgid \"$n\"\n"; + print "msgstr \"\"\n\n"; +} + +print "# eof\n";