From: Steinar H. Gunderson Date: Sun, 10 Jun 2012 09:28:09 +0000 (+0200) Subject: Make the relegation text translatable. X-Git-Url: https://git.sesse.net/?p=wloh;a=commitdiff_plain;h=ec88f67e841ab19faaac402bf981237b0e101c8e Make the relegation text translatable. --- diff --git a/po/en.po b/po/en.po index 2c84281..34e82c4 100644 --- a/po/en.po +++ b/po/en.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2012-06-10 03:20+0300\n" +"POT-Creation-Date: 2012-06-10 11:25+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -44,8 +44,8 @@ msgid "Wordfeud League of Honour" msgstr "Wordfeud League of Honour" #. type: Content of:

-#: templates/index.xml:34 templates/index.xml:79 templates/index.xml:121 -#: templates/index.xml:122 templates/rating.xml:22 templates/rating.xml:28 +#: templates/index.xml:34 templates/index.xml:80 templates/index.xml:123 +#: templates/index.xml:124 templates/rating.xml:22 templates/rating.xml:28 #: templates/rating.xml:41 templates/rating.xml:95 #, no-wrap msgid "." @@ -91,8 +91,14 @@ msgid "" " " msgstr "Subdivision:" +#. type: Content of:
+#: templates/index.xml:64 templates/index.xml:89 +#, no-wrap +msgid "NEDRYKK" +msgstr "RELEGATION" + #. type: Content of:

-#: templates/index.xml:78 +#: templates/index.xml:79 #, no-wrap msgid "" "Under er en variant som tar relativ spillestyrke med i beregningen;\n" @@ -100,25 +106,25 @@ msgid "" msgstr "Below is a variant that takes relative playing strength into account; see " #. type: Content of:

-#: templates/index.xml:79 +#: templates/index.xml:80 #, no-wrap msgid "ratingsiden" msgstr "the ratings page" #. type: Content of:

-#: templates/index.xml:103 +#: templates/index.xml:105 #, no-wrap msgid "Kovarianstabell:" msgstr "Covariance matrix:" #. type: Content of:

-#: templates/index.xml:121 +#: templates/index.xml:123 #, no-wrap msgid "Gjennomsnittlig rating i denne avdelingen er " msgstr "Average rating in this subdivision is " #. type: Content of:

-#: templates/index.xml:122 templates/rating.xml:95 +#: templates/index.xml:124 templates/rating.xml:95 #, no-wrap msgid "Databasen ble sist synkronisert " msgstr "The database was last synchronized " diff --git a/po/wloh.pot b/po/wloh.pot index a386454..cb9a444 100644 --- a/po/wloh.pot +++ b/po/wloh.pot @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" -"POT-Creation-Date: 2012-06-10 03:20+0300\n" +"POT-Creation-Date: 2012-06-10 11:25+0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -43,7 +43,7 @@ msgid "Wordfeud League of Honour" msgstr "" #. type: Content of:

-#: templates/index.xml:34 templates/index.xml:79 templates/index.xml:121 templates/index.xml:122 templates/rating.xml:22 templates/rating.xml:28 templates/rating.xml:41 templates/rating.xml:95 +#: templates/index.xml:34 templates/index.xml:80 templates/index.xml:123 templates/index.xml:124 templates/rating.xml:22 templates/rating.xml:28 templates/rating.xml:41 templates/rating.xml:95 #, no-wrap msgid "." msgstr "" @@ -92,8 +92,14 @@ msgid "" " " msgstr "" +#. type: Content of: @@ -78,6 +79,7 @@ Subdivision: diff --git a/templates/index.xml b/templates/index.xml index ad72409..f3bdf3a 100644 --- a/templates/index.xml +++ b/templates/index.xml @@ -61,6 +61,7 @@ function showScenario(element_id, url) { @@ -85,6 +86,7 @@ function showScenario(element_id, url) { diff --git a/www/index.pl b/www/index.pl index 4fef4a7..efa5517 100755 --- a/www/index.pl +++ b/www/index.pl @@ -200,12 +200,11 @@ sub make_table { my $num_games = scalar keys %prob; - # Make list of ranks. + # Make list of ranks. (Relegation is handled specially.) my @ranks = (); for my $i (1..$num_games) { push @ranks, { 'th' => "$i." }; } - push @ranks, { 'th' => 'NEDRYKK' } unless ($lowest_division); my @players = (); @@ -262,10 +261,12 @@ sub make_table { }; } - return { + my $parms = { 'ranks' => \@ranks, 'tbody' => \@players, }; + $parms->{'relegation'} = '' if ($lowest_division); + return $parms; } sub make_cov_table {
+#: templates/index.xml:64 templates/index.xml:89 +#, no-wrap +msgid "NEDRYKK" +msgstr "" + #. type: Content of:

-#: templates/index.xml:78 +#: templates/index.xml:79 #, no-wrap msgid "" "Under er en variant som tar relativ spillestyrke med i beregningen;\n" @@ -101,25 +107,25 @@ msgid "" msgstr "" #. type: Content of:

-#: templates/index.xml:79 +#: templates/index.xml:80 #, no-wrap msgid "ratingsiden" msgstr "" #. type: Content of:

-#: templates/index.xml:103 +#: templates/index.xml:105 #, no-wrap msgid "Kovarianstabell:" msgstr "" #. type: Content of:

-#: templates/index.xml:121 +#: templates/index.xml:123 #, no-wrap msgid "Gjennomsnittlig rating i denne avdelingen er " msgstr "" #. type: Content of:

-#: templates/index.xml:122 templates/rating.xml:95 +#: templates/index.xml:124 templates/rating.xml:95 #, no-wrap msgid "Databasen ble sist synkronisert " msgstr "" diff --git a/templates/index.en.xml b/templates/index.en.xml index 90e9354..6496581 100644 --- a/templates/index.en.xml +++ b/templates/index.en.xml @@ -55,6 +55,7 @@ Subdivision:

+ RELEGATION
+ RELEGATION
+ NEDRYKK
+ NEDRYKK