Index: trunk/extensions/ConfirmEdit/ConfirmEdit.php |
— | — | @@ -40,9 +40,7 @@ |
41 | 41 | $wgExtensionCredits['other'][] = array( |
42 | 42 | 'path' => __FILE__, |
43 | 43 | 'name' => 'ConfirmEdit', |
44 | | - 'author' => 'Brion Vibber', /* Add "and others" here when you find |
45 | | - * a way to do it properly with |
46 | | - * i18n */ |
| 44 | + 'author' => array( 'Brion Vibber', '...' ), |
47 | 45 | 'url' => 'http://www.mediawiki.org/wiki/Extension:ConfirmEdit', |
48 | 46 | 'version' => '1.0', |
49 | 47 | 'descriptionmsg' => 'captcha-desc', |
Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -445,7 +445,7 @@ |
446 | 446 | |
447 | 447 | $author = isset ( $extension['author'] ) ? $extension['author'] : array(); |
448 | 448 | $extDescAuthor = "<td>$description</td> |
449 | | - <td>" . $this->listToText( (array)$author, false ) . "</td> |
| 449 | + <td>" . $this->listAuthors( $author, false ) . "</td> |
450 | 450 | </tr>\n"; |
451 | 451 | |
452 | 452 | return $extNameVer . $extDescAuthor; |
— | — | @@ -513,6 +513,24 @@ |
514 | 514 | } |
515 | 515 | |
516 | 516 | /** |
| 517 | + * Return a formatted unsorted list of authors |
| 518 | + * |
| 519 | + * @param $authors mixed: string or array of strings |
| 520 | + * @return String: HTML fragment |
| 521 | + */ |
| 522 | + function listAuthors( $authors ) { |
| 523 | + $list = array(); |
| 524 | + foreach( (array)$authors as $item ) { |
| 525 | + if( $item == '...' ) { |
| 526 | + $list[] = wfMsg( 'version-poweredby-others' ); |
| 527 | + } else { |
| 528 | + $list[] = $item; |
| 529 | + } |
| 530 | + } |
| 531 | + return $this->listToText( $list, false ); |
| 532 | + } |
| 533 | + |
| 534 | + /** |
517 | 535 | * Convert an array of items into a list for display. |
518 | 536 | * |
519 | 537 | * @param $list Array of elements to display |