r24622 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r24621‎ | r24622 | r24623 >
Date:15:55, 6 August 2007
Author:raymond
Status:old
Tags:
Comment:
* (bug 10273) Remove sep11 wiki (but I assume a shell user has to update $wgLocalDatabases too)
* (bug 10818) Localization of Special:SiteMatrix
** Adding table headings and a header before the list of other Wikimedia wikis
Modified paths:
  • /trunk/extensions/SiteMatrix/SiteMatrix.i18n.php (modified) (history)
  • /trunk/extensions/SiteMatrix/SiteMatrix_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SiteMatrix/SiteMatrix_body.php
@@ -58,14 +58,14 @@
5959
6060 # Special wikis that should point to wikiPedia, not wikiMedia
6161 $wikipediaSpecial = array(
62 - 'dk', 'sep11', 'sources', 'species', 'test',
 62+ 'dk', 'sources', 'species', 'test',
6363 );
6464
6565 # Some internal databases for other domains.
6666 $hidden = array(
6767 'foundation', 'mediawiki',
6868 );
69 -
 69+
7070 # Tabulate the matrix
7171 $specials = array();
7272 $matrix = array();
@@ -88,11 +88,15 @@
8989 # Construct the HTML
9090
9191 # Header row
92 - $s = '<table><tr>';
93 - $s .= '<th>Language</th>';
94 - foreach ( $names as $name ) {
95 - $s .= '<th>' . $name . '</th>';
96 - }
 92+ $s = '<table>
 93+ <tr>
 94+ <th>' . wfMsg( 'sitematrix-language' ) . '</th>
 95+ <th colspan="' . count( $sites ) . '>' . wfMsg( 'sitematrix-project' ) . '"</th>
 96+ </tr><tr>
 97+ <th>&nbsp;</th>';
 98+ foreach ( $names as $name ) {
 99+ $s .= '<th>' . $name . '</th>';
 100+ }
97101 $s .= "</tr>\n";
98102
99103 global $wgLanguageNames;
@@ -117,6 +121,7 @@
118122 $s .= "</table>\n";
119123
120124 # Specials
 125+ $s .= '<h2>' . wfMsg( 'sitematrix-others' ) . '</h2>';
121126 $s .= '<ul>';
122127 foreach ( $specials as $lang ) {
123128
@@ -139,5 +144,3 @@
140145 $wgOut->addHTML( $s );
141146 }
142147 }
143 -
144 -
Index: trunk/extensions/SiteMatrix/SiteMatrix.i18n.php
@@ -8,7 +8,10 @@
99 $wgSiteMatrixMessages = array();
1010
1111 $wgSiteMatrixMessages['en'] = array(
12 - "sitematrix" => "List of Wikimedia wikis",
 12+ "sitematrix" => "List of Wikimedia wikis",
 13+ 'sitematrix-language' => 'Language',
 14+ 'sitematrix-project' => 'Name of project, interproject link and interwiki link',
 15+ 'sitematrix-others' => 'Other projects of Wikimedia',
1316 );
1417 $wgSiteMatrixMessages['af'] = array(
1518 "sitematrix" => "Lys van Wikimedia-wiki's",
@@ -20,7 +23,10 @@
2124 "sitematrix" => "Seznam wiki projektů nadace Wikimedia",
2225 );
2326 $wgSiteMatrixMessages['de'] = array(
24 - "sitematrix" => "Liste der Wikimedia-Wikis",
 27+ "sitematrix" => "Liste der Wikimedia-Wikis",
 28+ 'sitematrix-language' => 'Sprache',
 29+ 'sitematrix-project' => 'Projektname, Interprojekt-Link und Interwiki-Link',
 30+ 'sitematrix-others' => 'Weitere Wikimedia-Projekte',
2531 );
2632 $wgSiteMatrixMessages['fi'] = array(
2733 "sitematrix" => "Luettelo Wikimedian wikeistä",

Status & tagging log