Index: trunk/extensions/SiteMatrix/SiteMatrix_body.php |
— | — | @@ -58,14 +58,14 @@ |
59 | 59 | |
60 | 60 | # Special wikis that should point to wikiPedia, not wikiMedia |
61 | 61 | $wikipediaSpecial = array( |
62 | | - 'dk', 'sep11', 'sources', 'species', 'test', |
| 62 | + 'dk', 'sources', 'species', 'test', |
63 | 63 | ); |
64 | 64 | |
65 | 65 | # Some internal databases for other domains. |
66 | 66 | $hidden = array( |
67 | 67 | 'foundation', 'mediawiki', |
68 | 68 | ); |
69 | | - |
| 69 | + |
70 | 70 | # Tabulate the matrix |
71 | 71 | $specials = array(); |
72 | 72 | $matrix = array(); |
— | — | @@ -88,11 +88,15 @@ |
89 | 89 | # Construct the HTML |
90 | 90 | |
91 | 91 | # 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> </th>'; |
| 98 | + foreach ( $names as $name ) { |
| 99 | + $s .= '<th>' . $name . '</th>'; |
| 100 | + } |
97 | 101 | $s .= "</tr>\n"; |
98 | 102 | |
99 | 103 | global $wgLanguageNames; |
— | — | @@ -117,6 +121,7 @@ |
118 | 122 | $s .= "</table>\n"; |
119 | 123 | |
120 | 124 | # Specials |
| 125 | + $s .= '<h2>' . wfMsg( 'sitematrix-others' ) . '</h2>'; |
121 | 126 | $s .= '<ul>'; |
122 | 127 | foreach ( $specials as $lang ) { |
123 | 128 | |
— | — | @@ -139,5 +144,3 @@ |
140 | 145 | $wgOut->addHTML( $s ); |
141 | 146 | } |
142 | 147 | } |
143 | | - |
144 | | - |
Index: trunk/extensions/SiteMatrix/SiteMatrix.i18n.php |
— | — | @@ -8,7 +8,10 @@ |
9 | 9 | $wgSiteMatrixMessages = array(); |
10 | 10 | |
11 | 11 | $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', |
13 | 16 | ); |
14 | 17 | $wgSiteMatrixMessages['af'] = array( |
15 | 18 | "sitematrix" => "Lys van Wikimedia-wiki's", |
— | — | @@ -20,7 +23,10 @@ |
21 | 24 | "sitematrix" => "Seznam wiki projektů nadace Wikimedia", |
22 | 25 | ); |
23 | 26 | $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', |
25 | 31 | ); |
26 | 32 | $wgSiteMatrixMessages['fi'] = array( |
27 | 33 | "sitematrix" => "Luettelo Wikimedian wikeistä", |