From c3e48a419fb28290c80dc9cc3fc30a843bf03a60 Mon Sep 17 00:00:00 2001 From: "Mark A. Hershberger" Date: Wed, 25 May 2011 15:19:38 +0000 Subject: [PATCH] =?utf8?q?Fixes=20Bug=20#29133:=20=E2=80=9CSpecial:Passwor?= =?utf8?q?dReset=20button=20text=20not=20i18n-able=E2=80=9D=20by=20adding?= =?utf8?q?=20the=20alterForm()=20method=20to=20set=20the=20submit=20button?= =?utf8?q?=20text.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- includes/specials/SpecialPasswordReset.php | 4 ++++ 1 file changed, 4 insertions(+) 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; -- 2.20.1