mw.Upload.BookletLayout: Better handle error messages from AbuseFilter and TitleBlacklist
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 23 Jun 2016 04:09:23 +0000 (06:09 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Wed, 29 Jun 2016 17:54:08 +0000 (19:54 +0200)
commitc0c63a286f82aa07f5584f39cd4c7b56f41d76cc
treeb9de79a589e9be9d14ffcf9a7358d40d8a85426f
parent931796f88bb2402d20fc5f4e6c9a5c7238ec18d8
mw.Upload.BookletLayout: Better handle error messages from AbuseFilter and TitleBlacklist

And hopefully, also other extensions, if they follow the format where
result.error.message.key is the key of a message that can be used to report
the error to the user and result.error.message.params is an array of
parameters for it, if any.

The message text is loaded dynamically from the foreign wiki.

Bug: T115260
Bug: T137841
Depends-On: I97c1f5c6bbbdfc0b8ea9914bb075d5299c14df8f (TitleBlacklist)
Depends-On: I5780eae96930211191ecd874aacf53fdacb58f89 (AbuseFilter)
Change-Id: I5d1a289cf3d3b9de53047566172ab19a859e608e
languages/i18n/en.json
languages/i18n/qqq.json
resources/Resources.php
resources/src/mediawiki/api/messages.js
resources/src/mediawiki/mediawiki.Upload.BookletLayout.js