Commit graph

447 commits

Author SHA1 Message Date
Shinjiman a798c9146b Localisation updates Cantonese for extension messages 2009-04-25 18:57:15 +00:00
Siebrand Mazeland c5c6a71f18 Localisation updates for extension messages from translatewiki.net (2009-04-24 21:46 UTC) 2009-04-24 22:06:09 +00:00
Siebrand Mazeland 39d56f3052 Fix typo in 'abusefilter-import-intro' (comma to period) 2009-04-24 21:31:23 +00:00
Andrew Garrett 91f46a5697 (bug 18423) Add link to filtered abuse log on Contributions. Patch by Simon Walker, with minor fixes for double-escaping and wikitext in messages. 2009-04-24 01:53:12 +00:00
Rotem Liss 21f275dbd8 Localization update for he. 2009-04-23 20:21:51 +00:00
Siebrand Mazeland fb471aab5d Use {{int:key}} instead of plain text in 'abusefilter-import-intro' 2009-04-23 09:29:29 +00:00
Andrew Garrett d00d767207 Allow filtering by page on AbuseFilter batch testing interface 2009-04-23 04:30:17 +00:00
Andrew Garrett 1a0fc0fea9 Add import/export interface for filters so that filters can be copied across wikis 2009-04-23 04:23:56 +00:00
Raimond Spekking d7eebd5ca7 Localisation updates for extension messages from translatewiki.net (2009-04-22 17:05 UTC) 2009-04-22 18:10:13 +00:00
Siebrand Mazeland 36a7a3657e Localisation updates for extension messages from translatewiki.net (2009-04-20 09:59 UTC) 2009-04-20 10:15:38 +00:00
Raimond Spekking a6374ef38a Localisation updates for extension messages from translatewiki.net (2009-04-16 19:52 UTC) 2009-04-16 20:09:07 +00:00
Rotem Liss 8794a80b2e Localization update for he. 2009-04-16 07:18:45 +00:00
Siebrand Mazeland 942ddebaf2 Localisation updates for extension messages from translatewiki.net (2009-04-15 21:42 UTC) 2009-04-15 22:04:33 +00:00
Raimond Spekking ee855b5bc5 Localisation updates for extension messages from translatewiki.net (2009-04-14 18:14 UTC) 2009-04-14 18:34:04 +00:00
Siebrand Mazeland 9a3b4889bd Localisation updates for extension messages from translatewiki.net (2009-04-13 17:03 UTC) 2009-04-13 17:15:49 +00:00
Raimond Spekking 78bdadb123 Localisation updates for extension messages from translatewiki.net (2009-04-12 18:56 UTC) 2009-04-12 19:43:10 +00:00
Philip Tzou 28202160b8 Add a new function named 'convert()', allow user to convert a string to specified variant in Abuse Filter. With the support of LanguageConverter which updated on r49397. 2009-04-11 10:59:38 +00:00
Siebrand Mazeland 76c936ae02 Rebuild all extension messages files supported by Translate
* removed obsolete, reordered, etc
* source: translatewiki.net (includes updates for translations that had not yet been exported)
2009-04-09 23:24:07 +00:00
Siebrand Mazeland de9b47dd0a Localisation updates for extension messages from translatewiki.net (2009-04-09 22:30 UTC) 2009-04-09 22:40:05 +00:00
Philip Tzou a56f78b6ba follow up on r49336, typo. 2009-04-09 11:50:00 +00:00
Philip Tzou 0c41d56052 Simplified Chinese i18n translation of AbuseFilter. 2009-04-09 11:41:07 +00:00
Raimond Spekking d60623be2a Localisation updates for extension messages from translatewiki.net (2009-04-08 18:40 UTC) 2009-04-08 19:07:19 +00:00
Raimond Spekking b2d139ad1e Localisation updates for extension messages from translatewiki.net (2009-04-06 18:50 UTC) 2009-04-06 19:16:07 +00:00
Rotem Liss cb52b7bf3c Localization update for he. 2009-04-06 09:56:03 +00:00
Alexandre Emsenhuber 5c2b3f1dde Fix abusefilter-exception-outofbounds, this is a parameter 2009-04-05 20:18:02 +00:00
Victor Vasiliev 128ae5983b Introduce list (non-associated array) support into abuse filter parser. 2009-04-05 17:11:17 +00:00
Rotem Liss 9e66a03612 Localization update for he. 2009-04-05 12:05:58 +00:00
Victor Vasiliev 258d340fb5 Abuse filter:
* Introduce := operator for setting variables
* Throw an exception when user tries to override built-in variable
* Fix UTF-8 handling in fnmatch() fallback
* Copy three main abuse filters from enwiki to test suite
* Fix update.php integration
2009-04-05 11:47:42 +00:00
Siebrand Mazeland 85c34395ce Localisation updates for extension messages from translatewiki.net (2009-04-03 19:42 UTC) 2009-04-03 19:55:44 +00:00
Rotem Liss ee71415f9c Localization update for he. 2009-04-03 15:46:19 +00:00
Raimond Spekking 7d1cc76658 Use PLURAL for $3. 2009-04-03 10:59:40 +00:00
Rotem Liss 77666b1ac8 Localization update for he. 2009-04-02 09:12:54 +00:00
Raimond Spekking e18d285364 Localisation updates for extension messages from translatewiki.net (2009-04-01 17:57 UTC) 2009-04-01 18:52:14 +00:00
Rotem Liss 901a99ad19 Localization update for he. 2009-04-01 12:50:07 +00:00
Andrew Garrett 7c2a7a2fe0 Support for variable setting with the set_var function, and multiple expressions separated by semicolons (;). In evaluation, the result of the LAST expression will be the return value. 2009-04-01 06:53:18 +00:00
Andrew Garrett ba0b30a054 Add syntax error messages for invalid regexes 2009-04-01 05:56:24 +00:00
Andrew Garrett 3f62707206 String manipulation functions substr, str_replace and strpos for AbuseFilter 2009-04-01 05:05:23 +00:00
Andrew Garrett 57d1a0b16e Add timestamp variable 2009-04-01 03:59:58 +00:00
Rotem Liss 3e3f565472 Localization update for he. 2009-03-31 18:13:57 +00:00
Andrew Garrett 186fc67373 Crackdown on filter evaluation by users unable to modify filters. This is a DoS vector which I thought I'd already plugged. 2009-03-31 15:13:26 +00:00
Raimond Spekking 9d300aeafb Localisation updates for extension messages from translatewiki.net (2009-03-30 19:55 UTC) 2009-03-30 20:35:14 +00:00
Rotem Liss 17dee862f2 Localization update for he. 2009-03-30 18:17:09 +00:00
Andrew Garrett 14b850f891 Implementation of global filters, including a major i18n change for abusefilter-log-detailedentry message (rename and split). Needs further testing before deployment 2009-03-30 06:12:12 +00:00
Siebrand Mazeland 05c9882663 Localisation updates for extension messages from translatewiki.net (2009-03-29 22:17 UTC) 2009-03-29 22:26:09 +00:00
Siebrand Mazeland d7d3737eaf Fix typo in 'abusefilter-edit-builder-misc-tern' 2009-03-29 16:07:39 +00:00
Raimond Spekking a8c47b2a0a Localisation updates for extension messages from translatewiki.net (2009-03-28 21:50 UTC) 2009-03-28 22:26:10 +00:00
Raimond Spekking e94659bba8 Localisation updates for extension messages from translatewiki.net (2009-03-26 19:26 UTC) 2009-03-26 20:31:32 +00:00
Rotem Liss 9943dfeb9a Fix typo. 2009-03-26 14:30:09 +00:00
Rotem Liss 3cd0f2c5c7 Localization update for he. 2009-03-26 14:21:12 +00:00
Andrew Garrett 9d9c666fea Remove accidentally-committed code in r48856 2009-03-26 04:44:47 +00:00
Andrew Garrett 920f04d4fa Fix batch-testing (follow-up to r48855) 2009-03-26 04:41:05 +00:00
Andrew Garrett c597c1915f Add contains_any function, for searching a single haystack for multiple needles. Implemented with FSS with a fallback to a for loop, so it should be really fast. 2009-03-26 02:03:32 +00:00
Andrew Garrett 86e4081206 Abuse Filter Parser:
* Efficiency -- use /A instead of PREG_OFFSET_CAPTURE and comparing offsets.
* Expand error messages to enhance debugging.
* General code quality
2009-03-25 11:36:38 +00:00
Raimond Spekking 8dfd648706 Localisation updates for extension messages from translatewiki.net (2009-03-24 20:05 UTC) 2009-03-24 20:24:05 +00:00
Siebrand Mazeland f95d35be00 Localisation updates for extension messages from translatewiki.net (2009-03-23 18:54 UTC) 2009-03-23 19:15:02 +00:00
Rotem Liss 8867569f8b Localization update for he. 2009-03-22 12:25:43 +00:00
Andrew Garrett 903cd76bd8 Fix output for examine interface in cases where no edits are available 2009-03-22 03:12:53 +00:00
Raimond Spekking 6805b4235a Localisation updates for extension messages from translatewiki.net (2009-03-20 09:36 UTC) 2009-03-20 09:52:26 +00:00
Brion Vibber 310f85507f Follow-up to r48174 "* add GENDER support for 'abusefilter-reautoconfirm-done' and 'abusefilter-reautoconfirm-none'"
Don't forget the neutral default in English! :)
2009-03-20 01:58:25 +00:00
Rotem Liss 39870ee458 Localization update for he. 2009-03-19 14:18:24 +00:00
Andrew Garrett 82c958e434 Document contains, ternery operator and conditionals 2009-03-19 05:11:55 +00:00
Andrew Garrett 966b020e6b Document rmspecials, rmwhitespace, ip_in_range 2009-03-19 05:06:39 +00:00
Andrew Garrett f234bcf66d Add basic filter profiling to AbuseFilter -- display on the edit filter page the average time taken to run the filter. Currently sampling at 1/50 2009-03-19 02:40:48 +00:00
Raimond Spekking 47e8d6ef1c Localisation updates for extension messages from translatewiki.net (2009-03-18 20:02 UTC) 2009-03-18 20:26:20 +00:00
Rotem Liss 7b4dff38ae Localization update for he. 2009-03-18 16:05:03 +00:00
Andrew Garrett 667c566423 Add a diff, if applicable, below the var dump in abuse log details 2009-03-18 05:45:36 +00:00
Rotem Liss f48d562b20 * Localization update for he.
* In WikimediaMessages: Changing grouppage-bigexporter to grouppage-bigexport, to match the group and group member messages, and the original definition.
* In core: Rebuilding English file.
2009-03-17 20:31:43 +00:00
Andrew Garrett 0ce853e093 Prevent leaking of hidden filters through history interface. 2009-03-17 13:18:33 +00:00
Raimond Spekking de5e906b76 Localisation updates for extension messages from translatewiki.net (2009-03-16 19:23 UTC) 2009-03-16 19:44:48 +00:00
Rotem Liss 26597d4257 Localization update for he. 2009-03-13 16:48:14 +00:00
Raimond Spekking 7dde267c91 Localisation updates for extension messages from translatewiki.net (2009-03-12 21:40 UTC) 2009-03-12 21:58:12 +00:00
Andrew Garrett 5493b2a690 Add diffs to AbuseFilter. Includes a related pare-down of history, under the assumption that diffs will take up the slack 2009-03-12 05:04:39 +00:00
Rotem Liss c17b47741f Localization update for he. 2009-03-11 09:38:42 +00:00
Andrew Garrett fe5141c412 Add a normal log for filter changes, mostly just a pointer back to the real log. 2009-03-11 07:12:42 +00:00
Andrew Garrett 3a55ecbc85 Link together abusefilter pages with a navigation interface at the top. Add a better intro to the abusefilter home page. 2009-03-11 05:55:06 +00:00
Andrew Garrett 05b6efd7d6 Message that has been missing for god knows how long. 2009-03-11 01:51:25 +00:00
Raimond Spekking 556218169f Localisation updates for extension messages from translatewiki.net (2009-03-10 20:50 UTC) 2009-03-10 21:05:10 +00:00
Siebrand Mazeland 23685aa82f Localisation updates for extension messages from translatewiki.net (2009-03-09 22:54 UTC) 2009-03-09 23:12:20 +00:00
Rotem Liss 7e6b548b4c Localization update for he. 2009-03-08 20:48:29 +00:00
Raimond Spekking 97e2eb8431 Localisation updates for extension messages from translatewiki.net (2009-03-08 19:57 UTC) 2009-03-08 20:35:28 +00:00
Siebrand Mazeland 5ebcee6089 * add GENDER support for 'abusefilter-reautoconfirm-done' and 'abusefilter-reautoconfirm-none'
* update message 'abusefilter-reautoconfirm-none'
2009-03-08 18:32:59 +00:00
Siebrand Mazeland 360fde72d4 Localisation updates for extension messages from translatewiki.net (2009-03-07 17:28 UTC) 2009-03-07 17:45:21 +00:00
Rotem Liss 900f7d8992 Localization update for he, and several fixes in en. 2009-03-07 14:06:59 +00:00
Andrew Garrett 55b417f517 Add rcount function, same as count except it takes a regex as the needle 2009-03-07 01:26:42 +00:00
Raimond Spekking 58fdf4f05d * Add Language::semicolonList() function
** Todo: combine all three list functions (comma, semicolon, pipe) into one function with a parameter?
* Use pipe as backlink separator to be consistent with other navigation elements
* Show the colon for case 'afh_actions' only if parameters exist
** Remove the now useless message
* Localize the usages of comma and semicolon
2009-03-06 10:56:37 +00:00
Siebrand Mazeland d504b8ee5e Localisation updates for extension messages from translatewiki.net (2009-03-05 23:24 UTC) 2009-03-05 23:41:28 +00:00
Rotem Liss eed62fed53 Localization update for he. 2009-03-05 19:22:37 +00:00
Raimond Spekking 949aa2ec69 Localisation updates for extension messages from translatewiki.net (2009-03-04 20:19 UTC) 2009-03-04 20:51:07 +00:00
Andrew Garrett be7dcd9b3b (bug 17674) Add minor_edit variable to AbuseFilter 2009-03-04 02:04:48 +00:00
Raimond Spekking 2d10caf937 Add a full stop at the end of a sentence 2009-03-03 20:04:03 +00:00
Raimond Spekking 5f54cf15a1 Localisation updates for extension messages from translatewiki.net (2009-03-02 20:53 UTC) 2009-03-02 21:24:26 +00:00
Siebrand Mazeland ef717b6ce3 Localisation updates for extension messages from translatewiki.net (2009-03-01 20:51 UTC) 2009-03-01 21:05:55 +00:00
Raimond Spekking c19d44ba1b Localisation updates for extension messages from translatewiki.net (2009-02-28 20:04 UTC) 2009-02-28 20:34:14 +00:00
Bertrand Grondin 6fe27717cf Localisation updates Special:AbuseFilter from Betawiki (french translation) 2009-02-28 14:58:29 +00:00
Rotem Liss 847e7fd159 Localization update for he. 2009-02-27 09:37:06 +00:00
Raimond Spekking 3b77ef1f6c /me slaps /me for silly english. Thanks to Siebrand :) 2009-02-27 09:19:30 +00:00
Raimond Spekking 86e29672a9 Add a summary message 2009-02-27 09:12:25 +00:00
Raimond Spekking d0977bda88 Add 'action-$right' messages 2009-02-27 08:11:34 +00:00
Rotem Liss 128fb64fb0 Localization update for he. 2009-02-26 20:15:42 +00:00
Raimond Spekking 97a9f4a585 Localisation updates for extension messages from translatewiki.net (2009-02-26 19:33 UTC) 2009-02-26 19:55:11 +00:00
Siebrand Mazeland 67c7a5a904 article -> page 2009-02-26 12:23:52 +00:00
Andrew Garrett 92698e95ba Improve AbuseFilter performance by implementing lazy initialisation of computed variables.
This has been done by replacing simple associative arrays with an AbuseFilterVariableHolder, which recognises helper classes called AFComputedVariables.
Computation may occur during the abuse filter analysis, or later when testing and reviewing filters.
2009-02-26 12:15:14 +00:00
Raimond Spekking 3beeec7250 Remove unused message 2009-02-26 09:54:30 +00:00
Siebrand Mazeland 4481cb5afa Localisation updates for extension messages from translatewiki.net (2009-02-25 22:32 UTC) 2009-02-25 22:58:35 +00:00
Raimond Spekking 68909a26dd * Remove full stops from 2 messages
* Add colon to 1 message
for consistency with similar messages
2009-02-25 21:52:44 +00:00
Raimond Spekking 4f7bf955de Localisation updates for extension messages from translatewiki.net (2009-02-24 19:52 UTC) 2009-02-24 20:22:25 +00:00
Siebrand Mazeland 0ffb9504ff Localisation updates for extension messages from translatewiki.net (2009-02-23 21:43 UTC) 2009-02-23 22:00:14 +00:00
Raimond Spekking 8c2f0144cd Localisation updates for extension messages from translatewiki.net (2009-02-22 21:02 UTC) 2009-02-22 20:27:34 +00:00
Siebrand Mazeland ff9c349a2c Localisation updates for extension messages from translatewiki.net (2009-02-21 17:44 UTC) 2009-02-21 18:23:03 +00:00
Raimond Spekking fb96e5aab9 Localisation updates for extension messages from translatewiki.net (2009-02-20 20:09 UTC) 2009-02-20 20:33:43 +00:00
Siebrand Mazeland e5ab9fa681 Localisation updates for extension messages from translatewiki.net (2009-02-19 21:36 UTC) 2009-02-19 22:12:31 +00:00
Rotem Liss 56c1db6bec Localization update for he. 2009-02-19 12:25:30 +00:00
Andrew Garrett 20c9542fe3 Another silly reautoconfirm bug -- nothing was being returned. 2009-02-19 00:18:31 +00:00
Siebrand Mazeland 7442d14517 Localisation updates for extension messages from translatewiki.net (2009-02-17 21:00 UTC) 2009-02-17 21:23:38 +00:00
Raimond Spekking 73b3d3ac89 Localisation updates for extension messages from translatewiki.net (2009-02-16 17:30 UTC) 2009-02-16 18:44:29 +00:00
Siebrand Mazeland 4639579c09 Localisation updates for extension messages from translatewiki.net (2009-02-15 18:43 UTC) 2009-02-15 19:02:29 +00:00
Siebrand Mazeland 5bbe5f2782 Localisation updates for extension messages from translatewiki.net (2009-02-14 11:51 UTC) 2009-02-14 12:03:26 +00:00
Rotem Liss cd8a17af7e Localization update for he. 2009-02-12 12:56:38 +00:00
Andrew Garrett 35e61feeb6 Abuse Filter Parser updates
* Deprecate parseTokens in favour of a parse-as-you-go approach, faster and uses less memory.
* Display variables in lower_case so they aren't SHOUTING_AT_PEOPLE.
* Tell people if they try to use variables that don't exist, rather than silently returning NULL.
2009-02-11 20:00:33 +00:00
Rotem Liss e1d2743d7a Localization update for he. 2009-02-11 19:20:18 +00:00
Siebrand Mazeland 271a0a7aad Localisation updates for extension messages from translatewiki.net (2009-02-11 18:17 UTC) 2009-02-11 18:38:18 +00:00
Andrew Garrett bfe57be65d Rewrite of Abuse Filter parser tokeniser.
I've made it more performant and fixed a few bugs by using regexes
instead of PHP loops, where possible, under the assumption that the
PCRE parser is more efficient than the same thing implemented in pure PHP.
Also, I'm now passing the same string around and calculating offsets, which
Tim tells me is far more performant than continually truncating the same string.

All tests still pass, with the exception of string.t, which I've modified
to remove the offending code, which never worked.
2009-02-11 01:41:51 +00:00
Siebrand Mazeland 6c9266d8e3 Localisation updates for extension messages from translatewiki.net (2009-02-10 23:29 UTC) 2009-02-10 23:48:58 +00:00
Siebrand Mazeland 112e031ecd Localisation updates for extension messages from translatewiki.net (2009-02-10 06:41 UTC) 2009-02-10 07:01:19 +00:00
Siebrand Mazeland bc91dc3843 Localisation updates for extension messages from translatewiki.net (2009-02-08 22:48 UTC) 2009-02-08 23:02:36 +00:00
Siebrand Mazeland 1df448d530 Localisation updates for extensions messages from translatewiki.net (2009-02-07 21:24 UTC) 2009-02-07 22:04:21 +00:00
Siebrand Mazeland 050e623836 Localisation updates for extension messages from translatewiki.net (2009-02-05 18:09 UTC) 2009-02-05 18:20:16 +00:00
Rotem Liss c202f89003 Localization update for he. 2009-02-04 20:52:06 +00:00
Andrew Garrett fcdfd79c67 Allow Abuse Log entries to be examined in the same way recent changes items are. 2009-02-04 19:51:03 +00:00
Siebrand Mazeland 3617248d13 Localisation updates for extension messages from translatewiki.net (2009-02-04 18:04 UTC) 2009-02-04 18:20:54 +00:00
Rotem Liss 7fc78be483 Localization update for he. 2009-02-04 13:20:40 +00:00
Andrew Garrett 5cfbee6e22 Clarify title for history page 2009-02-03 23:21:09 +00:00
Rotem Liss a49ad34249 Localization update for he. 2009-02-03 23:14:01 +00:00
Andrew Garrett 9e5d11e46b Add an edit link too. 2009-02-03 22:54:46 +00:00
Rotem Liss a4574866e2 Localization update for he. 2009-02-03 22:50:23 +00:00
Andrew Garrett 60cfbf15c7 Add a fancy selector for the warning message in the Abuse Filter edit screen, and allow inline previews of the warning messages. 2009-02-03 22:45:42 +00:00
Rotem Liss 05e8d8490a Localization update for he. 2009-02-02 16:06:01 +00:00
Alexandre Emsenhuber a9e5660c49 PLURAL support in 'abusefilter-test-intro' 2009-02-02 15:37:08 +00:00
Siebrand Mazeland 779775cf2a Localisation updates for extension messages from Betawiki (2009-02-02 14:46 UTC) 2009-02-02 15:01:57 +00:00
Siebrand Mazeland da3f33884b Localisation updates for extension messages from Betawiki (2009-02-01 13:41 UTC) 2009-02-01 14:04:42 +00:00
Rotem Liss bc80e34d71 Localization update for he; removing self-link and some other fixes in en:. 2009-02-01 12:59:59 +00:00
Siebrand Mazeland 9d75e9f4e6 Localisation updates for extension messages from Betawiki (2009-01-31 23:29 UTC) 2009-01-31 23:50:10 +00:00
Andrew Garrett 5c6da8cbda Char location instead of vague 'at end'. 2009-01-31 00:20:26 +00:00
Andrew Garrett 769d0a6ea2 Add a nice convenience link to the testing interface to the filter editing interface. 2009-01-30 19:19:03 +00:00
Siebrand Mazeland 7c29d67d1b article -> page 2009-01-30 07:02:57 +00:00
Andrew Garrett 7cbfa0597a Prettify and enhance usability of test and examine views.
* Adopt pretty logos for "Match" and "No Match" for visual distinguishment.
* Allow negatives to be reported as well in 'test' interface.
2009-01-30 00:54:20 +00:00
Andrew Garrett b566499222 Missing colon in message. 2009-01-29 23:49:03 +00:00
Andrew Garrett 2d24fcced0 Add a few missing messages, and fix a syntax error from r46557. 2009-01-29 23:36:09 +00:00
Andrew Garrett 783c69c3ba Clarify rlike v. like in builder menu. 2009-01-29 23:28:59 +00:00
Andrew Garrett 189d1fde40 Minor fixes for r46557
* Don't show revisions in the examiner which can't be examined.
* Fill out some forgotten interface messages.
2009-01-29 23:04:06 +00:00