Index: trunk/extensions/CentralAuth/specials/SpecialCentralAuth.php |
— | — | @@ -429,13 +429,18 @@ |
430 | 430 | } |
431 | 431 | |
432 | 432 | function formatEditcount( $row ) { |
| 433 | + $wiki = WikiMap::getWiki( $row['wiki'] ); |
| 434 | + if ( !$wiki ) { |
| 435 | + throw new MWException( "Invalid wiki: {$row['wiki']}" ); |
| 436 | + } |
| 437 | + $wikiname = $wiki->getDisplayName(); |
433 | 438 | global $wgLang; |
434 | 439 | $editCount = $wgLang->formatNum( intval( $row['editCount'] ) ); |
435 | 440 | return $this->foreignLink( |
436 | 441 | $row['wiki'], |
437 | 442 | 'Special:Contributions/' . $this->mUserName, |
438 | 443 | $editCount, |
439 | | - wfMsg( 'centralauth-foreign-contributions', $editCount ) |
| 444 | + wfMsgExt( 'centralauth-foreign-contributions', 'parseinline', $editCount, $wikiname ) |
440 | 445 | ); |
441 | 446 | } |
442 | 447 | |
— | — | @@ -467,8 +472,9 @@ |
468 | 473 | } |
469 | 474 | |
470 | 475 | $url = $wiki->getUrl( $title ); |
471 | | - if ( $params ) |
| 476 | + if ( $params ) { |
472 | 477 | $url .= '?' . $params; |
| 478 | + } |
473 | 479 | return Xml::element( 'a', |
474 | 480 | array( |
475 | 481 | 'href' => $url, |
Index: trunk/extensions/CentralAuth/CentralAuth.i18n.php |
— | — | @@ -91,7 +91,7 @@ |
92 | 92 | 'centralauth-list-unattached' => 'The account "$1" could not be automatically confirmed as belonging to you on the following sites; |
93 | 93 | most likely they have a different password from your primary account:', |
94 | 94 | 'centralauth-foreign-link' => 'User $1 on $2', |
95 | | - 'centralauth-foreign-contributions' => '$1 contributions', |
| 95 | + 'centralauth-foreign-contributions' => '$1 {{PLURAL:$1|contribution|contributions}} on $2', |
96 | 96 | |
97 | 97 | // Merge methods |
98 | 98 | 'centralauth-merge-method-primary' => 'home wiki', |
— | — | @@ -415,7 +415,8 @@ |
416 | 416 | *$2 is the name of the local wiki', |
417 | 417 | 'centralauth-foreign-contributions' => 'Tool tip in list of local accounts (on the edit count column) on [http://meta.wikimedia.org/w/index.php?title=Special%3ACentralAuth&target=Siebrand Global user manager] special page. |
418 | 418 | |
419 | | - *$1 is the number of contributions', |
| 419 | + *$1 is the number of contributions |
| 420 | + *$2 is the name of the local wiki', |
420 | 421 | 'centralauth-merge-method-primary' => '{{Identical|Home wiki}}', |
421 | 422 | 'centralauth-merge-method-mail' => 'Tool tip in list of local accounts on [http://meta.wikimedia.org/w/index.php?title=Special%3ACentralAuth&target=Siebrand Global user manager] special page.', |
422 | 423 | 'centralauth-merge-method-password' => 'Tool tip in list of local accounts on [http://meta.wikimedia.org/w/index.php?title=Special%3ACentralAuth&target=Siebrand Global user manager] special page.', |