From: Amir E. Aharoni Date: Sun, 28 Oct 2012 20:19:23 +0000 (+0200) Subject: (bug 32237) Add GENDER support to Special:EmailUser X-Git-Tag: 1.31.0-rc.0~21827^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=3088335693cc3283b168d373f909e14dc27d2328;p=lhc%2Fweb%2Fwiklou.git (bug 32237) Add GENDER support to Special:EmailUser Change-Id: Ie72cc90518c6f5880632fe17d4c60f392e3ddec6 --- diff --git a/includes/specials/SpecialEmailuser.php b/includes/specials/SpecialEmailuser.php index 4d875e6ef9..9a42c0959e 100644 --- a/includes/specials/SpecialEmailuser.php +++ b/includes/specials/SpecialEmailuser.php @@ -139,7 +139,8 @@ class SpecialEmailUser extends UnlistedSpecialPage { $this->mTargetObj = $ret; $form = new HTMLForm( $this->getFormFields(), $this->getContext() ); - $form->addPreText( $this->msg( 'emailpagetext' )->parse() ); + // By now we are supposed to be sure that $this->mTarget is a user name + $form->addPreText( $this->msg( 'emailpagetext', $this->mTarget )->parse() ); $form->setSubmitTextMsg( 'emailsend' ); $form->setTitle( $this->getTitle() ); $form->setSubmitCallback( array( __CLASS__, 'uiSubmit' ) ); diff --git a/languages/messages/MessagesEn.php b/languages/messages/MessagesEn.php index 5b8987af40..fcdefdacb1 100644 --- a/languages/messages/MessagesEn.php +++ b/languages/messages/MessagesEn.php @@ -2807,7 +2807,8 @@ There may be [[{{MediaWiki:Listgrouprights-helppage}}|additional information]] a 'emailuser-title-notarget' => 'E-mail user', 'emailuser-summary' => '', # do not translate or duplicate this message to other languages 'emailpage' => 'E-mail user', -'emailpagetext' => 'You can use the form below to send an e-mail message to this user. +// Dummy GENDER to prevent warnings at translatewiki +'emailpagetext' => 'You can use the form below to send an e-mail message to this {{GENDER:$1|user}}. The e-mail address you entered in [[Special:Preferences|your user preferences]] will appear as the "From" address of the e-mail, so the recipient will be able to reply directly to you.', 'usermailererror' => 'Mail object returned error:', 'defemailsubject' => '{{SITENAME}} e-mail from user "$1"', diff --git a/languages/messages/MessagesQqq.php b/languages/messages/MessagesQqq.php index d88763be5c..0a952de961 100644 --- a/languages/messages/MessagesQqq.php +++ b/languages/messages/MessagesQqq.php @@ -2654,7 +2654,8 @@ See also {{msg-mw|listgrouprights-addgroup-all}}.', 'emailpage' => "Title of special page [[Special:EmailUser]], when it is the destination of the sidebar link {{msg-mw|Emailuser}} on a user's page.", 'emailpagetext' => 'This is the text that is displayed above the e-mail form on [[Special:EmailUser]]. -Special:EmailUser appears when you click on the link "E-mail this user" in the sidebar, but only if there is an e-mail address in the recipient\'s user preferences. If there isn\'t then the message [[Mediawiki:Noemailtext]] will appear instead of Special:EmailUser.', +Special:EmailUser appears when you click on the link "E-mail this user" in the sidebar, but only if there is an e-mail address in the recipient\'s user preferences. If there isn\'t then the message [[Mediawiki:Noemailtext]] will appear instead of Special:EmailUser. Parameters: +* $1 can be used for GENDER.', 'defemailsubject' => 'The default subject of EmailUser emails. Parameters: * $1 is the username of the user sending the email and can be used for GENDER.', 'usermaildisabled' => 'Caption for an error message ({{msg-mw|Usermaildisabledtext}}) shown when the user-to-user e-mail feature is disabled on the wiki (see [[mw:Manual:$wgEnableEmail]], [[mw:Manual:$wgEnableUserEmail]]).',