Add MWTimestamp::getTimezoneString(), use it in file revert message
authorgladoscc <admin@glados.cc>
Fri, 26 Dec 2014 01:57:14 +0000 (12:57 +1100)
committerErik Bernhardson <ebernhardson@wikimedia.org>
Wed, 23 Sep 2015 20:38:16 +0000 (13:38 -0700)
commit90e1b22166b00e096930d90029bd9826843298b2
tree2857f281714d7cb421394dc4dc21b05e1824bbf2
parentb1ef4a066aa21858d2fccf3982bfcdbe641b7f92
Add MWTimestamp::getTimezoneString(), use it in file revert message

MWTimestamp::getTimezoneString() returns the timezone name as a message,
that supports wiki localization. The code is moved from Parser::pstPass2.

The default file revert message is currently always in UTC.

This patch sets the default timestamp to be in the wiki timezone (similar
to ~~~~). The timezone is passed as a new parameter to the message, with
the date / time parameters being merged and handled by
$wgContentLang->timeanddate

Bug: T36948
Change-Id: I48772f5f3b1635d33b6185776cedfc4ee1882494
RELEASE-NOTES-1.26
includes/MWTimestamp.php
includes/actions/RevertAction.php
includes/parser/Parser.php
languages/i18n/en.json
languages/i18n/qqq.json