Commit graph

6 commits

Author SHA1 Message Date
Bartosz Dziewoński 19c69f4158 Improve edit/upload error message integration
Compared to other extensions like AbuseFilter, SpamBlacklist's
integration with MediaWiki's error reporting was weird.

* When dealing with page editing, we returned two (or more)
  separate messages, which would then be rendered in a list.
  This looks weird, especially if the messages have fancy wrapper
  boxes etc.
* When dealing with file upload, we returned incomplete
  error message, not reporting the blacklisted link.

Now, in both cases, we return a single error message
containing all the details.

Change-Id: I4ca8e67e03726696a428093cc9fb547a6daa1492
2019-08-29 09:23:58 +00:00
MarcoAurelio 8d5c1cbe34 Split 'apihelp-*' messages into a 'i18n/api/.*' folder
Bug: T189982
Bug: T214367
Change-Id: Ibd078dca05959fbeeb91330c1d400c525e65c2f3
2019-01-22 21:27:50 +00:00
Brad Jorsch 68a2c875c0 API: Split description messages into summary + additional text
See MediaWiki core patch I778bab2b

Change-Id: Ic2e770b7830aaf85b6d2959eefd91edfffc40f5e
2017-06-09 11:59:25 -04:00
Brad Jorsch 1255882ab5 Add i18n for API module help
MediaWiki core change I04b1a384 added support for i18n of API module
help. This takes advantage of that while still maintaining backwards
compatibility with earlier versions of MediaWiki.

Once support for MediaWiki before 1.25 is dropped, the methods marked
deprecated in this patch may be removed.

Change-Id: I67395aff48185f3e09da31b51a08aa2541fe6a17
2014-10-29 16:37:38 -04:00
Faidon Liambotis f9e2fed9bf Revert "Categorize pages containing blacklisted links"
This resulted in doubling the appserver-memcached traffic across the
Wikimedia cluster.

This reverts commit 32b546a223.

Change-Id: I03e96a1bb223360e62d47f98a505cc5b26e5aadf
2014-03-31 09:06:56 +03:00
Siebrand Mazeland cda5d2a32c Migrate to JSON i18n
Procedure per https://www.mediawiki.org/wiki/Manual:GenerateJsonI18n.php
with shim.

Change-Id: I5b4012b0fb01b1baa7bbbd2457360cdb4a1a895a
2014-03-28 22:32:35 +01:00