Fixes Bug #29133: “Special:PasswordReset button text not i18n-able” by
authorMark A. Hershberger <mah@users.mediawiki.org>
Wed, 25 May 2011 15:19:38 +0000 (15:19 +0000)
committerMark A. Hershberger <mah@users.mediawiki.org>
Wed, 25 May 2011 15:19:38 +0000 (15:19 +0000)
adding the alterForm() method to set the submit button text.

includes/specials/SpecialPasswordReset.php

index f4863cf..47bb83e 100644 (file)
@@ -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;