diff options
author | Brad Jorsch <bjorsch@wikimedia.org> | 2014-09-18 13:38:23 -0400 |
---|---|---|
committer | Brad Jorsch <bjorsch@wikimedia.org> | 2014-10-20 16:56:35 -0400 |
commit | ad225f501c095a154bf015978e0c3263f0f1fa3f (patch) | |
tree | b51b10c8a913068786ac0194a5d82a105fc44c7f /includes/api/ApiEmailUser.php | |
parent | 015ad5d4030e553055d28d929743e49308fb459f (diff) | |
download | mediawikicore-ad225f501c095a154bf015978e0c3263f0f1fa3f.tar.gz mediawikicore-ad225f501c095a154bf015978e0c3263f0f1fa3f.zip |
API: Internationalize all remaining core API modules
This also adds some new ApiBase::PARAM_* constants to generate more
helpful help, and a method to override the default description message
for the use of ApiDisabled and ApiQueryDisabled.
Bug: 71638
Change-Id: Ic0c3d232e0498d58a043037e2e0c6f0b1c3edad3
Diffstat (limited to 'includes/api/ApiEmailUser.php')
-rw-r--r-- | includes/api/ApiEmailUser.php | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index 9870b2ded8f7..911f454da1e4 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -102,27 +102,14 @@ class ApiEmailUser extends ApiBase { ); } - public function getParamDescription() { - return array( - 'target' => 'User to send email to', - 'subject' => 'Subject header', - 'text' => 'Mail body', - 'ccme' => 'Send a copy of this mail to me', - ); - } - - public function getDescription() { - return 'Email a user.'; - } - public function needsToken() { return 'csrf'; } - public function getExamples() { + public function getExamplesMessages() { return array( - 'api.php?action=emailuser&target=WikiSysop&text=Content&token=123ABC' - => 'Send an email to the User "WikiSysop" with the text "Content"', + 'action=emailuser&target=WikiSysop&text=Content&token=123ABC' + => 'apihelp-emailuser-example-email', ); } |