Commit graph

4900 commits

Author SHA1 Message Date
Gabriel Wicke 840941546b Two batteries worth of token transform manager refactoring.
* TokenTransformDispatcher is now renamed to TokenTransformManager, and is
  also turned into a base class
* SyncTokenTransformManager and AsyncTokenTransformManager subclass
  TokenTransformManager and implement synchronous (phase 1,3) and asynchronous
  (phase 2) transformation stages.
* Communication between stages uses the same chunk / end events as all the
  other token stages.
* The AsyncTokenTransformManager now supports the creation of nested
  AsyncTokenTransformManagers for template expansion.
  The AsyncTokenTransformManager object takes on the responsibilities of a
  preprocessor frame. Transforms are newly created (or potentially resurrected
  from a cache), so that transforms do not have to worry about concurrency.
* The environment is pushed through to all transform managers and the
  individual transforms.
2012-01-09 17:49:16 +00:00
Raimond Spekking 76d30bcb15 Localisation updates for core and extension messages from translatewiki.net 2012-01-07 21:50:32 +00:00
Max Semenik 53ae80785a Follow-up r102160: removed arrows from tooltips 2012-01-04 15:00:01 +00:00
Raimond Spekking 954beec6bd Localisation updates for core and extension messages from translatewiki.net 2012-01-03 21:22:22 +00:00
Raimond Spekking 3a410032e0 Localisation updates for core and extension messages from translatewiki.net 2012-01-01 20:29:00 +00:00
Raimond Spekking 16eb6628f4 Localisation updates for core and extension messages from translatewiki.net 2011-12-29 21:54:17 +00:00
Raimond Spekking 021581df7a Localisation updates for core and extension messages from translatewiki.net 2011-12-28 22:31:07 +00:00
Raimond Spekking 38f20a9d6c Localisation updates for core and extension messages from translatewiki.net 2011-12-27 20:23:52 +00:00
Siebrand Mazeland 538f40afa9 Localisation updates for special pages and magic words for extensions from http://translatewiki.net.
Backwards compatibility with MediaWiki 1.15 and earlier dropped for special page aliases.
2011-12-25 22:19:29 +00:00
Raimond Spekking 4e7d9a0594 Localisation updates for core and extension messages from translatewiki.net 2011-12-25 20:25:45 +00:00
Siebrand Mazeland 5d3ab681e5 Rename no to nb (step 4/4): Change 'no' to 'nb' in remaining files. 2011-12-25 09:42:00 +00:00
Raimond Spekking 94e55a25ad Localisation updates for core and extension messages from translatewiki.net 2011-12-23 21:10:51 +00:00
Raimond Spekking f68f81b91c Localisation updates for core and extension messages from translatewiki.net 2011-12-22 20:15:58 +00:00
Raimond Spekking ed3c8e0491 Localisation updates for core and extension messages from translatewiki.net 2011-12-18 20:47:06 +00:00
Tim Weyer 00bb69a792 Replacing by in a few of most used extensions and renaming Special....php to ..._body.php 2011-12-18 10:27:44 +00:00
Gabriel Wicke 0866116fe4 Comment out a stray console.log 2011-12-14 23:44:58 +00:00
Gabriel Wicke fc41c8887c A collection of small bug fixes to the grammar, Cite, the Token format
converter and the HTML DOM -> WikiDom converter. The tokenizer now digests all
parserTests.
2011-12-14 23:38:46 +00:00
Raimond Spekking 76934e4be2 Localisation updates for core and extension messages from translatewiki.net 2011-12-14 20:09:13 +00:00
Gabriel Wicke 730b75ca21 Add rough HTML DOM to WikiDom conversion. You can see serialized WikiDom of
parser tests using 'node parserTests.js --wikidom'.
2011-12-14 15:15:41 +00:00
Brion Vibber 3351f7c540 Update a butt-ton of extension about URLs to point to https://www.mediawiki.org/ 2011-12-13 23:49:33 +00:00
Raimond Spekking 49b4e286e3 Localisation updates for core and extension messages from translatewiki.net 2011-12-13 20:50:04 +00:00
Gabriel Wicke 7a6f71db2f Minor tweak to comment. 2011-12-13 18:55:44 +00:00
Gabriel Wicke 8e8362b8f0 Clean up and comment the Cite extension a bit. 2011-12-13 18:45:09 +00:00
Gabriel Wicke 0fed6f9c79 Convert the Cite extension to a token stream transformer.
This required a few further additions to the TokenTransformDispatcher. In
particular, there is now an 'any' token match whose callbacks are executed
before more specific callbacks. This is used by the Cite extension to eat all
tokens between ref and /ref tags. This need is very common, so should be
broken out to an intermediate layer in the future.

In general, the requirements for the TokenTransformDispatcher API are now
clearer, and the API should likely be cleaned up / simplified.
2011-12-13 14:48:47 +00:00
Antoine Musso 2ebda89b06 Bug 31374: regression test made by Brion
Was originally added by accident with r101522 and lost with r105321.
I add to add a newline before </li>, probably some format changed somewhere.

Added it back just so we do not lost this test.
2011-12-13 11:16:51 +00:00
Raimond Spekking 6917ad1448 Localisation updates for core and extension messages from translatewiki.net 2011-12-09 20:31:37 +00:00
Sam Reed 00750eb2a1 Documentation 2011-12-02 17:00:19 +00:00
Raimond Spekking 13a7521fe5 Localisation updates for core and extension messages from translatewiki.net 2011-12-01 15:19:26 +00:00
Raimond Spekking 308fa34d35 Localisation updates for core and extension messages from translatewiki.net 2011-11-30 20:59:10 +00:00
Raimond Spekking 8f4aacd5ae Localisation updates for ToolserverI18N from translatewiki.net 2011-11-24 20:50:30 +00:00
Siebrand Mazeland e13268e92a Localisation updates from http://translatewiki.net. 2011-11-23 18:43:52 +00:00
Raimond Spekking a67b7c1993 Localisation updates for core and extension messages from translatewiki.net 2011-11-21 21:20:36 +00:00
Raimond Spekking b47c8f4be2 Localisation updates for core and extension messages from translatewiki.net 2011-11-20 21:18:38 +00:00
Raimond Spekking 698a12631f Localisation updates for core and extension messages from translatewiki.net 2011-11-16 20:05:35 +00:00
Roan Kattouw 2142134491 (bug 17865) Fix double-parsed error messages in Cite. Modified patch by Brad Jorsch 2011-11-14 12:22:07 +00:00
Roan Kattouw f0eec14538 Followup r102970, fix parser tests 2011-11-14 12:20:24 +00:00
Roan Kattouw 7103224ce0 (bug 20050) References containing numbered lists cause Tidy to corrupt the references list. Patch by Brad Jorsch 2011-11-14 12:02:23 +00:00
Gabriel Wicke f876382e67 Back out accidentally-committed r102967. 2011-11-14 11:14:39 +00:00
Gabriel Wicke 4a2232bbe2 Fixes bug #17865 2011-11-14 11:06:42 +00:00
Alexandre Emsenhuber f675f24f5d * No need to feed the oldid Article::fetchContent() and retrive it with Article::getRevIdFetched(), just pass it directly to Parser::parse() or use the latest revision when not passed
* Deferred creation of the Article object where it's more likely to be used
* Title also has an exists() method
2011-11-13 14:22:24 +00:00
Sam Reed 3f200aad13 Followup r102160
Also, bad werdna
2011-11-06 12:25:34 +00:00
Max Semenik cc44bb1ba8 Simplification + fmt 2011-11-06 08:09:56 +00:00
Max Semenik 7e1bad9bec Merging ReferenceTooltips into Cite step 2: rename/register 2011-11-06 08:02:39 +00:00
Max Semenik 25ea6b9d60 Merging ReferenceTooltips into Cite step 1: copy modules 2011-11-06 07:53:55 +00:00
Raimond Spekking 64f272323c Localisation updates for core and extension messages from translatewiki.net 2011-11-03 20:16:37 +00:00
Raimond Spekking e981d324a6 followup r99905: Do it for English too 2011-10-27 08:34:50 +00:00
Raimond Spekking 3ae995ebd7 Localisation updates for core and extension messages from translatewiki.net 2011-10-18 19:31:51 +00:00
Raimond Spekking 56f63ca71d Localisation updates for core and extension messages from translatewiki.net 2011-10-16 19:48:07 +00:00
Raimond Spekking b174b752c5 Bug 31681 - Special:Cite displays protocol relative URLs if $wgServer is relative
Per Brion (comment# 3): Seems sensible enough to use the canonical URL; ideally that should change to https: at some point in the future
2011-10-15 19:46:45 +00:00
Raimond Spekking ee40aaf1ed Localisation updates for core and extension messages from translatewiki.net 2011-10-09 20:04:54 +00:00