Index: trunk/extensions/SiteMatrix.php |
— | — | @@ -14,6 +14,7 @@ |
15 | 15 | function wfSiteMatrix() { |
16 | 16 | global $IP; |
17 | 17 | require_once( $IP.'/includes/SpecialPage.php' ); |
| 18 | +require_once( $IP.'/languages/Names.php' ); |
18 | 19 | |
19 | 20 | class SiteMatrixPage extends SpecialPage { |
20 | 21 | |
— | — | @@ -69,14 +70,17 @@ |
70 | 71 | |
71 | 72 | # Header row |
72 | 73 | $s = '<table><tr>'; |
| 74 | + $s .= '<th>Language</th>'; |
73 | 75 | foreach ( $names as $name ) { |
74 | | - $s .= '<td><strong>' . $name . '</strong></td>'; |
| 76 | + $s .= '<th>' . $name . '</th>'; |
75 | 77 | } |
76 | 78 | $s .= "</tr>\n"; |
77 | 79 | |
| 80 | + global $wgLanguageNames; |
78 | 81 | # Bulk of table |
79 | 82 | foreach ( $langlist as $lang ) { |
80 | | - $s .= "<tr>"; |
| 83 | + $s .= '<tr>'; |
| 84 | + $s .= '<td><strong>' . $wgLanguageNames[$lang] . '</strong></td>'; |
81 | 85 | $langhost = str_replace( '_', '-', $lang ); |
82 | 86 | foreach ( $names as $site => $name ) { |
83 | 87 | $url = "http://$langhost." . $hosts[$site] . '/'; |