Whym has uploaded a new change for review. https://gerrit.wikimedia.org/r/182654
Change subject: Clarifications in the API help messages regarding "daysago" ...................................................................... Clarifications in the API help messages regarding "daysago" Clarifying that when daysago=0 API returns the edit number for today. "since this many days ago" looks ambiguous (or at least prone to translation errors) as to whether it is inclusive or not. Change-Id: I2acf2dd7038dae4e1e8815874e5dba1ceafe48cc --- M api/ApiUserDailyContribs.php M i18n/en.json 2 files changed, 4 insertions(+), 3 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/UserDailyContribs refs/changes/54/182654/1 diff --git a/api/ApiUserDailyContribs.php b/api/ApiUserDailyContribs.php index 38166d0..c267a7b 100644 --- a/api/ApiUserDailyContribs.php +++ b/api/ApiUserDailyContribs.php @@ -62,7 +62,8 @@ public function getParamDescription() { return array( 'user' => 'Username to query', - 'daysago' => 'Number of edits since this many days ago', + 'daysago' => array('Number of edits since this many days ago', + '0 means the last single day only.'), 'basetimestamp' => array( 'Date from which daysago will be calculated (instead of "today").', 'Count returned in timeFrameEdits will be editcount between this date and the date', '"daysago" from it.' diff --git a/i18n/en.json b/i18n/en.json index cd917a9..daded57 100644 --- a/i18n/en.json +++ b/i18n/en.json @@ -7,7 +7,7 @@ "userdailycontribs-desc": "User daily contributions for the click tracking extension", "apihelp-userdailycontribs-description": "Get the total number of user edits, time of registration, and edits in a given timeframe.", "apihelp-userdailycontribs-param-user": "Username to query.", - "apihelp-userdailycontribs-param-daysago": "Number of edits since this many days ago.", + "apihelp-userdailycontribs-param-daysago": "Number of edits since this many days ago. 0 means the last single day only.", "apihelp-userdailycontribs-param-basetimestamp": "Date from which $1daysago will be calculated, instead of \"today\". Count returned in timeFrameEdits will be editcount between this date and the date \"$1daysago\" from it.", - "apihelp-userdailycontribs-example-1": "Get edit statistics for [[User:WikiSysop]] over the past 5 days" + "apihelp-userdailycontribs-example-1": "Get edit statistics for [[User:WikiSysop]] over the past 5 days and today" } -- To view, visit https://gerrit.wikimedia.org/r/182654 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I2acf2dd7038dae4e1e8815874e5dba1ceafe48cc Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/UserDailyContribs Gerrit-Branch: master Gerrit-Owner: Whym <w...@whym.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits