Commit graph

5262 commits

Author SHA1 Message Date
Tim Starling f5ba49d3e6 Fix Cite/CategoryTree parser test
Apparently the initial space in the class name and the double-escaping
of the JSON were both fixed at some point in the past. I haven't tracked
it down, but the change looks beneficial on the face of it.

Change-Id: Ibb30789093bfec8b4e6399e3a97629c6b876a616
2012-08-28 16:40:38 +10:00
Subramanya Sastry f733af93c4 Code cleanup.
* Moved tokensToString and KVtoHash from parser.environment
  to Util -- got rid of excessive warnings from tokensToString.
* Replaced used of Util.lookupKV(blah).v with Util.lookup(blah)

Change-Id: Ic48d5d0c79045b9789dc61a2b14df3fc2acf7aa5
2012-08-24 15:29:53 -05:00
Translation updater bot 6acd4d212f Localisation updates from http://translatewiki.net.
Change-Id: I27fd61c850baf8a96844338c5c933a2710d5b2a1
2012-08-24 19:37:11 +00:00
Siebrand fd39213887 Merge "Follow-up I47412b67: pass an array of query parameters to Linker::link()" 2012-08-21 19:06:19 +00:00
Subramanya Sastry 2d15258803 Fixed template meta-wrapping to handle nesting and attributes.
* Nested parser functions are no longer meta-wrapped similar to
  nested templates.
* HTML attributes which derive all or part of their key/value
  from a template are not template-wrapped, but are marked to
  be tracked via different rdfa meta attributes.  The actual
  tracking and addition of new meta attrs. is yet to be
  implemented.
* Parser pipeline construction updated to use an options object
  rather than individual option args -- used to support the two
  features above.
* With this fix, we can now distinguish between the following
  scenarios:

  Templates:
  - {{echo|[[Foo|bar]]}} -- regular wrapping of the entire link
  - [[{{echo|Foo}}|bar]] -- no wrapping, but href marked for tracking
  - [[Foo|{{echo|bar}}]] -- link text is wrapped.

  Parser functions:
  - {{uc:foo}} -- regular wrapping.
  - {{uc:{{lc:{{uc:foo}}}}}} -- only the top-level parser function
    is wrapped, the nested lc and uc parser functions are not.

Change-Id: I512b8de9838ad42d9255ebcd73074b3898294cd8
2012-08-19 15:21:36 -05:00
Translation updater bot 91c4622aaa Localisation updates from http://translatewiki.net.
Change-Id: I9bdc4af5eb1fafb7b3fb16a23e91a6ef914ee00b
2012-08-19 14:43:28 +00:00
Translation updater bot 9ec55a0757 Localisation updates from http://translatewiki.net.
Change-Id: I04c11f3bddee100be01f5d7a0138efc582072404
2012-08-17 12:59:10 +00:00
Translation updater bot ebeff5867d Localisation updates from http://translatewiki.net.
Change-Id: I3661968d5cead1e6c85a3736e4c5dc73bb45710c
2012-08-16 20:20:26 +00:00
Translation updater bot 96dac587fc Localisation updates from http://translatewiki.net.
Change-Id: I1f17400774b5f4b227b9c9fe94998673296b6687
2012-08-15 19:47:24 +00:00
Translation updater bot 8d302a7bfc Localisation updates from http://translatewiki.net.
Change-Id: I3f733541a8a1e370cf4370355f77559469fb0956
2012-08-14 19:35:03 +00:00
Translation updater bot 939912fafd Localisation updates from http://translatewiki.net.
Change-Id: Ic06dcb94efc3b5202ed75b32f3dd214819f56c68
2012-08-13 19:46:01 +00:00
Translation updater bot 368ec1fe05 Localisation updates from http://translatewiki.net.
Change-Id: Ia01e4a2ece2f4b36194ef9beee5ad3086daa0afa
2012-08-12 20:11:01 +00:00
Translation updater bot 0863032290 Localisation updates from http://translatewiki.net.
Change-Id: I614b55dc15c7a53f9e1d234be49068eb564de176
2012-08-11 19:15:04 +00:00
Translation updater bot a7d9f7702e Localisation updates from http://translatewiki.net.
Change-Id: I24967161dc80d5e8173661fab71f86074692c8d8
2012-08-11 00:01:16 +00:00
Translation updater bot eedd0ea064 Localisation updates from http://translatewiki.net.
Change-Id: Ia7e476cd989ef6a53c7fca30a3efa28d24bcf5ab
2012-08-10 19:15:38 +00:00
Translation updater bot a555c392bc Localisation updates from http://translatewiki.net.
Change-Id: Iddfd3b51c61c25decbee6f5ae0f5b5157b0084cf
2012-08-09 19:23:58 +00:00
Alexandre Emsenhuber a9e29e17ec Follow-up I47412b67: pass an array of query parameters to Linker::link()
Spotted by the notice throw by that change when Linker::link() gets a
string for query parameters.

Change-Id: I9100e62ebc49cce3611680bce4e9564b823922a3
2012-08-07 22:16:48 +02:00
Brad Jorsch 4933d7a682 (bug 17865) Fix wikilinking in "refs without references" error
The [[MediaWiki:Cite error refs without references]] message does not
correctly display wikilinks. This is because it takes effect during
ParserBeforeTidy, which misses the call to replaceLinkHolders(). And
parsing directly to HTML (with MessageCache::singleton()->parse()) would
lose categories and such added by the error message.

Gerrit change Iaa2755f994edb081eb1d176f632f7add41640dbf adds a
"ParserAfterParse" hook, which can be used to add this message in time
to be correctly handled by replaceLinkHolders().

Change-Id: I093d85d8f8c2ac3238609d145ae5b985602bb3fd
Depends-On: Iaa2755f994edb081eb1d176f632f7add41640dbf
2012-08-07 13:16:46 -04:00
Translation updater bot dd10684f7b Localisation updates from http://translatewiki.net.
Change-Id: I96e09854b966fcf62c4b5f698e4c4a5c474f8c10
2012-08-06 19:25:51 +00:00
Translation updater bot 528eeda7fe Localisation updates from http://translatewiki.net.
Change-Id: I2b439289c7528a9aeb0baa3f13b723936b6f8185
2012-08-05 19:26:52 +00:00
Translation updater bot f064485907 Localisation updates from http://translatewiki.net.
Change-Id: I5884a7c0e3be141e2a045d58a60e6bcd248f199b
2012-08-01 20:03:21 +00:00
Gabriel Wicke 4900d85606 Reorganize Parsoid repo after split from VisualEditor
* /js/ for JavaScript / nodjs implementation
* /js/lib for js modules
* /js/tests for js test runners and unit tests

Change-Id: I7da1ea2a62b9312be0f1b492447340427f6a14fb
2012-07-30 13:10:22 -07:00
Subramanya Sastry 4ae497db1e Renamed ext.Util.js to mediawiki.Util.js
Change-Id: I909847686c8239a0b00cbaa9a0b1583826ee1487
2012-07-24 13:07:53 -05:00
Translation updater bot 4950dc9dcd Localisation updates from http://translatewiki.net.
Change-Id: I7e46576cbef53ec2252db15e61c1cce8093053c4
2012-07-23 13:39:20 +00:00
Subramanya Sastry 194c7afb34 Added utility methods to ext.Util.js
* Copied over utility methods from mediawiki.parser.environment.js
  to ext.Util.js.
* Moved over utility method from mediawiki.parser.defines.js to
  ext.Util.js.
* Converted Util to be a singleton object rather than an allocatable
  class.  There is no reason to allocate a new utility class everywhere
  since this utility object has no useful state.
* Fixed up use of utility methods to use Util rather than env.

Change-Id: Ib81f96b894f6528f2ccbe36e1fd4c3d50cd1f6b7
2012-07-20 18:12:37 -05:00
Subramanya Sastry c0ab29779c In trace mode, wrap transform to output trace info
- Added extra debug_name parameter to addTransform which is
  used in addTransform to output useful trace info.

Change-Id: I160ba0c45f681149375e32ab19f97baa439b09a8
2012-07-20 18:12:37 -05:00
Translation updater bot 518dfcd922 Localisation updates from http://translatewiki.net.
Change-Id: I5b4ab2f47e2a89a6685edbffd11753633c8b9de1
2012-07-11 07:05:26 +00:00
Translation updater bot da2091e23c Localisation updates from http://translatewiki.net.
Change-Id: I62cc330065aa2ce20092538ad0eb9bc1b7acb980
2012-07-10 19:37:36 +00:00
Translation updater bot 67cf53b2cd Localisation updates from http://translatewiki.net.
Change-Id: Ic2f59d9a259f6442257279294c838cd8205f8d8e
2012-07-09 20:06:53 +00:00
Translation updater bot cec0d475e3 Localisation updates from http://translatewiki.net.
Change-Id: Ie7e7549fa3f1a6507124436e791abb3518962a4e
2012-07-06 21:16:50 +00:00
Translation updater bot 5c96df2ea3 Localisation updates from http://translatewiki.net.
Change-Id: I75ea3d6abea5d0d4fce0899b41963bfbba847b01
2012-07-04 20:05:39 +00:00
Translation updater bot a27814f748 Localisation updates from http://translatewiki.net.
Change-Id: I3cbccd23718b7c61fa31735029d45b58f5f94ed1
2012-07-03 20:55:35 +00:00
Translation updater bot d55f2b3b86 Localisation updates from http://translatewiki.net.
Change-Id: I1fcd2abdd241399af4be5d6b1387b1ddd1ac9118
2012-07-02 22:11:12 +00:00
Translation updater bot a906a8fd62 Localisation updates from http://translatewiki.net.
Change-Id: I5833b419113385392caa62c83338e9c5135a5359
2012-07-01 13:46:38 +00:00
Translation updater bot 203e60752c Localisation updates from http://translatewiki.net.
Change-Id: I7fcf16fef93f0c1f7f725853dadef204eeb300ea
2012-06-30 11:32:18 +00:00
Translation updater bot ffd65c0422 Localisation updates from http://translatewiki.net.
Change-Id: I7fb6155a81a3ae0760db06db5dcd109d49157ed3
2012-06-28 19:46:37 +00:00
Translation updater bot 4c8c2623c2 Localisation updates from http://translatewiki.net.
Change-Id: I2d71091941eb425ed9ef810f67b54bdd16c5d7b4
2012-06-25 20:17:11 +00:00
Translation updater bot fc80d3d264 Localisation updates from http://translatewiki.net.
Change-Id: I7ea3b47f7425634bd4d91f6c26d1f42aad908b7a
2012-06-21 20:23:40 +00:00
Translation updater bot 225646e57b Localisation updates from http://translatewiki.net.
Change-Id: I387bb1d22c58e88f5a9d74533d51b11e2ca63f40
2012-06-20 20:23:58 +00:00
Translation updater bot b77003a982 Localisation updates from http://translatewiki.net.
Change-Id: I1396334205a5edf3d84e95c3d07ad8a5a12e5b17
2012-06-19 19:26:36 +00:00
Translation updater bot 388aed8f18 Localisation updates from http://translatewiki.net.
Change-Id: I3100ad7234ede9d1df534aac59179009a9e64d4d
2012-06-17 20:15:40 +00:00
Translation updater bot 417b60485b Localisation updates from http://translatewiki.net.
Change-Id: I4bc63e929fec4ebcee73359df8e9ccbea3f3d2d4
2012-06-15 22:03:03 +00:00
Translation updater bot 69c98cda7a Localisation updates from http://translatewiki.net.
Change-Id: I8fdf7aa9baf34ce27e4bd57177ebddf23a09fea8
2012-06-14 19:46:37 +00:00
Translation updater bot 96e642848a Localisation updates from http://translatewiki.net.
Change-Id: I9c77bc35bf65ff917a1989e19e67ed0f47ca4694
2012-06-12 20:47:00 +00:00
Translation updater bot aab85a2660 Localisation updates from http://translatewiki.net.
Change-Id: I9949fa39540b6731b95ef651c03d30f9808e72c6
2012-06-11 14:22:48 +00:00
Translation updater bot 883253fb82 Localisation updates from http://translatewiki.net.
Change-Id: I84b42a4c81180a1131ea456387b895a5c3723e1a
2012-06-07 19:07:23 +00:00
Gabriel Wicke 0a4f1d435b Very basic interwiki support
Pages titles with a wikipedia interwiki prefix now load the page from
corresponding Wikipedia. Links in a page then stay within the given language.

Note that Parsoid currently makes no effort to recognize localized namespaces,
so it won't render media files, categories etc correctly.

Change-Id: I7bc4102e81a402772ea23231170734d580ea15b9
2012-06-05 11:19:58 +02:00
Translation updater bot d9bb18c12f Localisation updates from http://translatewiki.net.
Change-Id: I59a16b5609798769fc0e03b3df149f95495b2356
2012-06-04 20:48:23 +00:00
Translation updater bot b77c2ce677 Localisation updates from http://translatewiki.net.
Change-Id: I34375382dc460fea15b84e2f19ed3c13b4c9e65d
2012-06-03 20:20:07 +00:00
Translation updater bot c42cd6fe7a Localisation updates from http://translatewiki.net.
Change-Id: I79910d2a67b2d80812d414c6ad20908d2e946543
2012-06-01 19:23:44 +00:00