Migrate protect log to new log system
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 22 Aug 2015 18:29:00 +0000 (20:29 +0200)
committerSiebrand Mazeland <siebrand@kitano.nl>
Fri, 25 Sep 2015 15:07:50 +0000 (17:07 +0200)
commitd6961552b39f3d67c13b81f91afda94355188b33
tree08bde82144cbf6716463a767dba54df243284c02
parentdc3cf9ce854e31a6d133798f834d32f74cc24b47
Migrate protect log to new log system

This localize the protect type, level and expiry on Special:Log/protect.
To allow i18n there are some details stored in the log params of new log
items, these details also shown on API output.
The details cannot get from the old existing data, because there are
containing L10n strings therefore i18n works only for new items.
In the api and for IRC the old description text is still stored in the
log params for backward compatibility.

This allows use of gender on Special:Log. Old messages are kept for use
in IRC. Tests already exists to ensure an unchanged IRC message.

Bug: T47988
Change-Id: I3bb85c61b857972e66c99c499d7d785c88cafb25
includes/DefaultSettings.php
includes/logging/LogFormatter.php
includes/logging/LogPage.php
includes/logging/ProtectLogFormatter.php
includes/page/WikiPage.php
languages/i18n/en.json
languages/i18n/qqq.json
tests/phpunit/includes/logging/LogFormatterTest.php
tests/phpunit/includes/logging/LogFormatterTestCase.php
tests/phpunit/includes/logging/ProtectLogFormatterTest.php