$messages['en'] = array(
'captcha-edit' => 'To edit this page, please solve the simple sum below and enter the answer in the box ([[Special:Captcha/help|more info]]):',
'captcha-desc' => 'Provides CAPTCHA techniques to protect against spam and password-guessing',
+ 'captcha-label' => 'CAPTCHA',
'captcha-addurl' => 'Your edit includes new external links.
To help protect against automated spam, please solve the simple sum below and enter the answer in the box ([[Special:Captcha/help|more info]]):',
'captcha-badlogin' => 'To help protect against automated password cracking, please solve the simple sum below and enter the answer in the box ([[Special:Captcha/help|more info]]):',
*{{msg-mw|Questycaptcha-edit}}
*{{msg-mw|Fancycaptcha-edit}}',
'captcha-desc' => '{{desc}}',
+ 'captcha-label' => 'Label field for input field shown in forms',
'captcha-addurl' => 'The explanation of CAPTCHA shown to users trying to add new external links.
See also
*{{msg-mw|Questycaptcha-addurl}}
$title = SpecialPage::getTitleFor( 'Captcha', 'image' );
return "<p>" .
- Xml::element( 'img', array(
+ Html::element( 'img', array(
'src' => $title->getLocalUrl( 'wpCaptchaId=' . urlencode( $index ) ),
'width' => $info['width'],
'height' => $info['height'],
'alt' => '' ) ) .
"</p>\n" .
- Xml::element( 'input', array(
+ Html::element( 'input', array(
'type' => 'hidden',
'name' => 'wpCaptchaId',
'id' => 'wpCaptchaId',
'value' => $index ) ) .
- "<p>" .
+ '<p>' .
+ Html::element( 'label', array(
+ 'for' => 'wpCaptchaWord',
+ ), parent::getMessage( 'label' ) . wfMsg( 'colon-separator' ) .
Html::element( 'input', array(
'name' => 'wpCaptchaWord',
'id' => 'wpCaptchaWord',
+ 'type' => 'text',
'autocorrect' => 'off',
'autocapitalize' => 'off',
- 'required',
+ 'required' => 'required',
'tabindex' => 1 ) ) . // tab in before the edit textarea
"</p>\n";
}