Index: trunk/extensions/SiteMatrix/SiteMatrix_body.php |
— | — | @@ -359,8 +359,13 @@ |
360 | 360 | if( isset( $localLanguageNames[$lang] ) ) { |
361 | 361 | $attribs['title'] = $localLanguageNames[$lang]; |
362 | 362 | } |
363 | | - $s .= '<td>' . $anchor . Xml::element( 'strong', $attribs, $wgLanguageNames[$lang] ) . '</td>'; |
364 | 363 | |
| 364 | + $langDisplay = $wgLanguageNames[$lang]; |
| 365 | + if ( strlen( $localLanguageNames[$lang] ) && $langDisplay != $localLanguageNames[$lang] ) { |
| 366 | + $langDisplay .= ' (' . $localLanguageNames[$lang] . ')'; |
| 367 | + } |
| 368 | + $s .= '<td>' . $anchor . Xml::element( 'strong', $attribs, $langDisplay ) . '</td>'; |
| 369 | + |
365 | 370 | foreach ( $matrix->getNames() as $site => $name ) { |
366 | 371 | $url = $matrix->getUrl( $lang, $site ); |
367 | 372 | if ( $matrix->exist( $lang, $site ) ) { |