r83307 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83306‎ | r83307 | r83308 >
Date:18:53, 5 March 2011
Author:raymond
Status:ok
Tags:
Comment:
Follow-up r83276: PLURAL needs wfMsgExt with parameter 'parsemag'
Run seconds through formatNum() for complete i18n
Modified paths:
  • /trunk/extensions/AjaxLogin/ApiAjaxLogin.php (modified) (history)

Diff [purge]

Index: trunk/extensions/AjaxLogin/ApiAjaxLogin.php
@@ -91,9 +91,9 @@
9292 $result['text'] = wfMsg( 'al-createblocked' );
9393 break;
9494 case LoginForm::THROTTLED:
95 - global $wgPasswordAttemptThrottle;
 95+ global $wgPasswordAttemptThrottle, $wgLang;
9696 $result['result'] = 'Throttled';
97 - $result['text'] = wfMsg( 'al-throttled', intval( $wgPasswordAttemptThrottle['seconds'] ) );
 97+ $result['text'] = wfMsgExt( 'al-throttled', 'parsemag', $wgLang->formatNum( intval( $wgPasswordAttemptThrottle['seconds'] ) ) );
9898 break;
9999 case LoginForm::USER_BLOCKED:
100100 $result['result'] = 'Blocked';

Sign-offs

UserFlagDate
Nikerabbitinspected20:12, 5 March 2011

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r83276* update AjaxLogin extension to work with the new (as of 1.16) login api wher...skizzerz08:16, 5 March 2011

Status & tagging log