Added 'cont.' to category listing headers when the listing continues from the previou...
authorMr. E23 <e23@users.mediawiki.org>
Thu, 18 Nov 2004 18:57:51 +0000 (18:57 +0000)
committerMr. E23 <e23@users.mediawiki.org>
Thu, 18 Nov 2004 18:57:51 +0000 (18:57 +0000)
includes/CategoryPage.php
languages/Language.php

index 6c56dbc..491c834 100644 (file)
@@ -250,7 +250,9 @@ class CategoryPage extends Article {
                         // get and display header
                         $r .= '<table width="100%"><tr valign="top">';
 
-                        // loop through the chunks
+                       $prev_start_char = ""; 
+
+                       // loop through the chunks
                         for($startChunk = 0, $endChunk = $chunk, $chunkIndex = 0;
                                 $chunkIndex < 3;
                                 $chunkIndex++, $startChunk = $endChunk, $endChunk += $chunk + 1)
@@ -268,7 +270,11 @@ class CategoryPage extends Article {
                                              ($articles_start_char[$index] != $articles_start_char[$index - 1]) )
 
                                         {
-                                                $r .= "</ul><h3>{$articles_start_char[$index]}</h3>\n<ul>";
+                                               $cont_msg = "";
+                                               if($articles_start_char[$index] == $prev_start_char)
+                                                       $cont_msg = wfMsg('listingcontinuesabbrev');
+                                               $r .= "</ul><h3>{$articles_start_char[$index]}$cont_msg</h3>\n<ul>";
+                                               $prev_start_char = $articles_start_char[$index];
                                         }
 
                                         $r .= "<li>{$articles[$index]}</li>";
index d511d32..4ac0eae 100644 (file)
@@ -1502,6 +1502,7 @@ article [[Train]].
 'categoryarticlecount' => "There are $1 articles in this category.",
 'categoryarticlecount1' => "There is $1 article in this category.",
 'usenewcategorypage' => "1\n\nSet first character to \"0\" to disable the new category page layout.",
+'listingcontinuesabbrev' => " cont.",
 
 # Info page
 "infosubtitle" => "Information for page",