Index: trunk/extensions/CentralAuth/SpecialCentralAuth.php |
— | — | @@ -246,6 +246,7 @@ |
247 | 247 | } |
248 | 248 | |
249 | 249 | function prettyTimespan( $span ) { |
| 250 | + global $wgLang; |
250 | 251 | $units = array( |
251 | 252 | 'seconds' => 60, |
252 | 253 | 'minutes' => 60, |
— | — | @@ -254,10 +255,13 @@ |
255 | 256 | 'months' => 12, |
256 | 257 | 'years' => 1 ); |
257 | 258 | foreach( $units as $unit => $chunk ) { |
| 259 | + // Used messaged (to make sure that grep finds them): |
| 260 | + // 'centralauth-seconds-ago', 'centralauth-minutes-ago', 'centralauth-hours-ago' |
| 261 | + // 'centralauth-days-ago', 'centralauth-months-ago', 'centralauth-years-ago' |
258 | 262 | if( $span < 2*$chunk ) { |
259 | | - return wfMsgExt( "centralauth-$unit-ago", 'parsemag', $span ); |
| 263 | + return wfMsgExt( "centralauth-$unit-ago", 'parsemag', $wgLang->formatNum( $span ) ); |
260 | 264 | } |
261 | | - $span = intval( $span / $chunk ); |
| 265 | + $span = $wgLang->formatNum( intval( $span / $chunk ) ); |
262 | 266 | } |
263 | 267 | return wfMsgExt( "centralauth-$unit-ago", 'parsemag', $span ); |
264 | 268 | } |
— | — | @@ -272,7 +276,7 @@ |
273 | 277 | 'id' => $globalUser->getId(), |
274 | 278 | 'registered' => $wgLang->timeanddate( $reg ) . " ($age)", |
275 | 279 | 'home' => $this->determineHomeWiki(), |
276 | | - 'editcount' => $this->evaluateTotalEditcount(), |
| 280 | + 'editcount' => $wgLang->formatNum( $this->evaluateTotalEditcount() ), |
277 | 281 | 'locked' => $globalUser->isLocked() ? wfMsg( 'centralauth-admin-yes' ) : wfMsg( 'centralauth-admin-no' ), |
278 | 282 | 'hidden' => $this->formatHiddenLevel( $globalUser->getHiddenLevel() ) ); |
279 | 283 | $out = '<fieldset id="mw-centralauth-info">'; |
— | — | @@ -366,7 +370,7 @@ |
367 | 371 | '<td>' . htmlspecialchars( $wgLang->timeanddate( $row['attachedTimestamp'] ) ) . '</td>' . |
368 | 372 | '<td style="text-align: center">' . $this->formatMergeMethod( $row['attachedMethod'] ) . '</td>' . |
369 | 373 | '<td>' . $this->formatBlockStatus( $row ) . '</td>' . |
370 | | - '<td>' . $this->formatEditcount( $row ) . '</td>' . |
| 374 | + '<td style="text-align: right">' . $this->formatEditcount( $row ) . '</td>' . |
371 | 375 | '</tr>'; |
372 | 376 | } |
373 | 377 | |
— | — | @@ -406,10 +410,11 @@ |
407 | 411 | } |
408 | 412 | |
409 | 413 | function formatEditcount( $row ) { |
| 414 | + global $wgLang; |
410 | 415 | return $this->foreignLink( |
411 | 416 | $row['wiki'], |
412 | 417 | 'Special:Contributions/' . $this->mUserName, |
413 | | - intval( $row['editCount'] ), |
| 418 | + $wgLang->formatNum( intval( $row['editCount'] ) ), |
414 | 419 | 'contributions' ); |
415 | 420 | } |
416 | 421 | |