diff options
author | Baha <bmansurov@wikimedia.org> | 2017-04-04 18:52:57 -0400 |
---|---|---|
committer | Baha <bmansurov@wikimedia.org> | 2017-04-05 11:08:25 -0400 |
commit | 036b9c41674a8eb1bdcd71a15fffb5a091223d9e (patch) | |
tree | 7c936a66ca1a0ac568309eaa8a2eb9cd392366ca /includes/api/ApiEmailUser.php | |
parent | eca93b7c40944f1ac44d42f8ffa4afccc2ca235a (diff) | |
download | mediawikicore-036b9c41674a8eb1bdcd71a15fffb5a091223d9e.tar.gz mediawikicore-036b9c41674a8eb1bdcd71a15fffb5a091223d9e.zip |
Make API documentation links language aware
Links generated by the API are now aware of the user's preferred
language and will show documents in that language if available.
To test, log in to mediawiki.org and set your language preference to 'es',
then on an MediaWiki installation with this patch view the generated
expanded API help at `api.php?action=help&recursivesubmodules=1&modules=main`.
Each link to documentation on mediawiki.org should take you to its
translated /es subpage, if one exists.
Bug: T104518
Change-Id: I339a1f3ae1bce9d759cf251899d57c32b1def91e
Diffstat (limited to 'includes/api/ApiEmailUser.php')
-rw-r--r-- | includes/api/ApiEmailUser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/api/ApiEmailUser.php b/includes/api/ApiEmailUser.php index 8aff6f8afd46..72c7c358d2ea 100644 --- a/includes/api/ApiEmailUser.php +++ b/includes/api/ApiEmailUser.php @@ -114,6 +114,6 @@ class ApiEmailUser extends ApiBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Email'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Email'; } } |