From: Mark A. Hershberger Date: Wed, 25 May 2011 15:19:38 +0000 (+0000) Subject: Fixes Bug #29133: “Special:PasswordReset button text not i18n-able” by X-Git-Tag: 1.31.0-rc.0~29956 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=c3e48a419fb28290c80dc9cc3fc30a843bf03a60;p=lhc%2Fweb%2Fwiklou.git Fixes Bug #29133: “Special:PasswordReset button text not i18n-able” by adding the alterForm() method to set the submit button text. --- diff --git a/includes/specials/SpecialPasswordReset.php b/includes/specials/SpecialPasswordReset.php index f4863cf428..47bb83e754 100644 --- a/includes/specials/SpecialPasswordReset.php +++ b/includes/specials/SpecialPasswordReset.php @@ -76,6 +76,10 @@ class SpecialPasswordReset extends FormSpecialPage { return $a; } + public function alterForm( HTMLForm $form ) { + $form->setSubmitText( wfMessage( "mailmypassword" ) ); + } + protected function preText() { global $wgPasswordResetRoutes; $i = 0;