]> git.sesse.net Git - wloh/commitdiff
Make the relegation text translatable.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 10 Jun 2012 09:28:09 +0000 (11:28 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 10 Jun 2012 09:28:09 +0000 (11:28 +0200)
po/en.po
po/wloh.pot
templates/index.en.xml
templates/index.xml
www/index.pl

index 2c84281b3de76fe2a737b1f368edcfb59ecb86c3..34e82c41acc4ca7f808435983c2fb11bcc86f324 100644 (file)
--- 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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -44,8 +44,8 @@ msgid "Wordfeud League of Honour"
 msgstr "Wordfeud League of Honour"
 
 #. type: Content of: <html><body><p>
-#: 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: <html><body><table><thead><tr><t:relegation><th>
+#: templates/index.xml:64 templates/index.xml:89
+#, no-wrap
+msgid "NEDRYKK"
+msgstr "RELEGATION"
+
 #. type: Content of: <html><body><p>
-#: 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: <html><body><p><a>
-#: templates/index.xml:79
+#: templates/index.xml:80
 #, no-wrap
 msgid "ratingsiden"
 msgstr "the ratings page"
 
 #. type: Content of: <html><body><t:cov-table><p>
-#: templates/index.xml:103
+#: templates/index.xml:105
 #, no-wrap
 msgid "Kovarianstabell:"
 msgstr "Covariance matrix:"
 
 #. type: Content of: <html><body><p>
-#: 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: <html><body><p>
-#: 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 "
index a3864544aa4c2e019e2be167750bb03f9afe7eb9..cb9a4441e2861f12c791a38f1b3b2e98f40fa66c 100644 (file)
@@ -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 <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -43,7 +43,7 @@ msgid "Wordfeud League of Honour"
 msgstr ""
 
 #. type: Content of: <html><body><p>
-#: 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: <html><body><table><thead><tr><t:relegation><th>
+#: templates/index.xml:64 templates/index.xml:89
+#, no-wrap
+msgid "NEDRYKK"
+msgstr ""
+
 #. type: Content of: <html><body><p>
-#: 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: <html><body><p><a>
-#: templates/index.xml:79
+#: templates/index.xml:80
 #, no-wrap
 msgid "ratingsiden"
 msgstr ""
 
 #. type: Content of: <html><body><t:cov-table><p>
-#: templates/index.xml:103
+#: templates/index.xml:105
 #, no-wrap
 msgid "Kovarianstabell:"
 msgstr ""
 
 #. type: Content of: <html><body><p>
-#: templates/index.xml:121
+#: templates/index.xml:123
 #, no-wrap
 msgid "Gjennomsnittlig rating i denne avdelingen er "
 msgstr ""
 
 #. type: Content of: <html><body><p>
-#: templates/index.xml:122 templates/rating.xml:95
+#: templates/index.xml:124 templates/rating.xml:95
 #, no-wrap
 msgid "Databasen ble sist synkronisert "
 msgstr ""
index 90e93546f8a5d39009eaed1dbda7b98163721405..64965812262c05240d0630b9e9bb323479320f3f 100644 (file)
@@ -55,6 +55,7 @@ Subdivision:<select name="avdeling" onchange="form.submit();" t:id="subdivision"
           <t:ranks>
             <th />
           </t:ranks>
+          <t:relegation><th>RELEGATION</th></t:relegation>
         </tr>
       </thead>
       <tbody>
@@ -78,6 +79,7 @@ Subdivision:<select name="avdeling" onchange="form.submit();" t:id="subdivision"
           <t:ranks>
             <th />
           </t:ranks>
+          <t:relegation><th>RELEGATION</th></t:relegation>
         </tr>
       </thead>
       <tbody>
index ad724090aa00e6cf6c4cfaa1a25ff312c324412f..f3bdf3a1be0e599b93aac9604cd7d53ad1723b3a 100644 (file)
@@ -61,6 +61,7 @@ function showScenario(element_id, url) {
           <t:ranks>
             <th />
           </t:ranks>
+          <t:relegation><th>NEDRYKK</th></t:relegation>
         </tr>
       </thead>
       <tbody>
@@ -85,6 +86,7 @@ function showScenario(element_id, url) {
           <t:ranks>
             <th />
           </t:ranks>
+          <t:relegation><th>NEDRYKK</th></t:relegation>
         </tr>
       </thead>
       <tbody>
index 4fef4a7e4e319abe764e9edf78b844412cbb753d..efa55175bd828ef927a485e0d6172004fc138435 100755 (executable)
@@ -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 {