From: Max Semenik Date: Mon, 25 Apr 2011 14:05:57 +0000 (+0000) Subject: Rm all mentions of "this module" in API action descriptions. They are supposed to... X-Git-Tag: 1.31.0-rc.0~30567 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=220279a3529f59f7e7e40d6e7c479d327faaadab;p=lhc%2Fweb%2Fwiklou.git Rm all mentions of "this module" in API action descriptions. They are supposed to be read by API users, not MW coders, thus internal terminology shouldn't be used here. --- diff --git a/includes/api/ApiExpandTemplates.php b/includes/api/ApiExpandTemplates.php index c746c291e2..028709eb99 100644 --- a/includes/api/ApiExpandTemplates.php +++ b/includes/api/ApiExpandTemplates.php @@ -100,7 +100,7 @@ class ApiExpandTemplates extends ApiBase { } public function getDescription() { - return 'This module expand all templates in wikitext'; + return 'Expands all templates in wikitext'; } protected function getExamples() { diff --git a/includes/api/ApiFeedWatchlist.php b/includes/api/ApiFeedWatchlist.php index 7bc90bc45e..d8c1019ba4 100644 --- a/includes/api/ApiFeedWatchlist.php +++ b/includes/api/ApiFeedWatchlist.php @@ -194,7 +194,7 @@ class ApiFeedWatchlist extends ApiBase { } public function getDescription() { - return 'This module returns a watchlist feed'; + return 'Returns a watchlist feed'; } protected function getExamples() { diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 6d35304d26..5eb7ce45c1 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -181,7 +181,7 @@ class ApiLogin extends ApiBase { public function getDescription() { return array( - 'This module is used to login and get the authentication tokens. ', + 'Log in and get the authentication tokens. ', 'In the event of a successful log-in, a cookie will be attached', 'to your session. In the event of a failed log-in, you will not ', 'be able to attempt another log-in through this method for 5 seconds.', diff --git a/includes/api/ApiLogout.php b/includes/api/ApiLogout.php index 19c7478414..244c976c3d 100644 --- a/includes/api/ApiLogout.php +++ b/includes/api/ApiLogout.php @@ -64,7 +64,7 @@ class ApiLogout extends ApiBase { } public function getDescription() { - return 'This module is used to logout and clear session data'; + return 'Log out and clear session data'; } protected function getExamples() { diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 19741b00fa..bdab14fb7e 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -116,7 +116,7 @@ class ApiOpenSearch extends ApiBase { } public function getDescription() { - return 'This module implements OpenSearch protocol'; + return 'Searches the wiki using the OpenSearch protocol'; } protected function getExamples() { diff --git a/includes/api/ApiParse.php b/includes/api/ApiParse.php index 91385ed3b8..d154a2de23 100644 --- a/includes/api/ApiParse.php +++ b/includes/api/ApiParse.php @@ -562,7 +562,7 @@ class ApiParse extends ApiBase { } public function getDescription() { - return 'This module parses wikitext and returns parser output'; + return 'Parses wikitext and returns parser output'; } public function getPossibleErrors() { diff --git a/includes/api/ApiPurge.php b/includes/api/ApiPurge.php index 170f00fbbd..378c21855f 100644 --- a/includes/api/ApiPurge.php +++ b/includes/api/ApiPurge.php @@ -123,7 +123,7 @@ class ApiPurge extends ApiBase { public function getDescription() { return array( 'Purge the cache for the given titles.', - 'This module requires a POST request if the user is not logged in.' + 'Requires a POST request if the user is not logged in.' ); } diff --git a/includes/api/ApiQueryDeletedrevs.php b/includes/api/ApiQueryDeletedrevs.php index f8c92502a1..d774733fb9 100644 --- a/includes/api/ApiQueryDeletedrevs.php +++ b/includes/api/ApiQueryDeletedrevs.php @@ -374,7 +374,7 @@ class ApiQueryDeletedrevs extends ApiQueryBase { $p = $this->getModulePrefix(); return array( 'List deleted revisions.', - 'This module operates in three modes:', + 'Operates in three modes:', ' 1) List deleted revisions for the given title(s), sorted by timestamp', ' 2) List deleted contributions for the given user, sorted by timestamp (no titles specified)', " 3) List all deleted revisions in the given namespace, sorted by title and timestamp (no titles specified, {$p}user not set)", diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index ef1b1e0974..da8966e81c 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -633,7 +633,7 @@ class ApiQueryRevisions extends ApiQueryBase { public function getDescription() { return array( 'Get revision information', - 'This module may be used in several ways:', + 'May be used in several ways:', ' 1) Get data about a set of pages (last revision), by setting titles or pageids parameter', ' 2) Get revisions for one given page, by using titles/pageids with start/end/limit params', ' 3) Get data about a set of revisions by setting their IDs with revids parameter',