Commit graph

5180 commits

Author SHA1 Message Date
Translation updater bot a7f582f07b Localisation updates from https://translatewiki.net.
Change-Id: Ia7ac2c758d082ef9720251823dd3c569767178a4
2015-06-14 21:03:05 +02:00
Translation updater bot 9443ef5737 Localisation updates from https://translatewiki.net.
Change-Id: I476c50f7dee2289c0a93c98190e364bee50b7a81
2015-06-12 21:52:02 +02:00
Kunal Mehta eee3d0cfc6 build: Adding configuration for jsonlint
Change-Id: I03b00e0aaa63fb49d68e0c5ee1b0613c2bb83f6c
2015-06-11 21:30:08 -07:00
Stephane Bisson 61997fd9b8 Style module should define its position explicitly
Put 'ext.cite.style.css' at the top.

Change-Id: Ibb5347a4f831438542da252e6d19f451276419aa
2015-06-10 16:41:13 -04:00
Marc Ordinas i Llopis aa8fed3a3d Use CSS to style Parsoid's Cite HTML
* Add a new module ext.cite.style to load the new CSS.
* Add a ResourceLoaderFileModule that adds the correct CSS file
  depending on the content language, so that the visual style of
  citations can be changed per-language.

The main ext.cite.style.css file renders similarly to MediaWiki's
default Cite style. Also, an example CSS for Farsi numbering is
included.

Bug: T86782
Change-Id: I487095df8a7c4241a14f7b4480360f6774130bec
2015-06-08 21:58:15 +01:00
Bartosz Dziewoński 3f30e08d77 Revert "Do all of Cite's real work during unstrip" and followup
This reverts commits 944b245428
and fa7be37d15.

These resulted in too many new exciting behaviors for the improvement
of nested refs behavior to be worth it. We should try again later.

Also, use Parser::MARKER_PREFIX instead of $parser->uniqPrefix()
which has been deprecated in the meantime by 12571bde.

Fixes T101390, fixes T100477. Reopens T22707, reopens T18330.

Bug: T100477
Bug: T101390
Change-Id: I1a71854cf24e85697ab171be43eeec9054bc504c
2015-06-08 16:24:27 +02:00
Translation updater bot e5cc29e9fa Localisation updates from https://translatewiki.net.
Change-Id: I92b525160888534ff1a4ca3395a011514b71147b
2015-06-07 22:25:58 +02:00
Derk-Jan Hartman 05cb5cc1a0 Cleanup style RL modules for Cite
Move the JS which is purely for accessibility purposes into a separate
JS RL module named ext.cite.a11y. Move all pure CSS, which is not dependant
on accompanying JS into a separate ext.cite.styles module

Bug: T101559
Change-Id: I58adcfbcf9af2bb3b6d5dabb6c38c42af78e0416
2015-06-06 15:43:27 +02:00
jenkins-bot c52d548beb Merge "Move '@media print' rules to separate file" 2015-06-06 13:12:30 +00:00
Kunal Mehta 15f554ea9f build: Updating development dependencies
* grunt-banana-checker: 0.2.1 → 0.2.2

Change-Id: I4285cf28f77591818950dce884fba83d282eee3a
2015-06-05 17:16:40 -07:00
Translation updater bot 49f4b860a3 Localisation updates from https://translatewiki.net.
Change-Id: I9f8767364ee2815b9f1653155498d5d5826b9178
2015-06-05 20:55:33 +02:00
Bartosz Dziewoński 3ac0dedd1b Move '@media print' rules to separate file
Not a fix for T93746 yet, but a prerequisite.

Bug: T93746
Change-Id: I3dc1fa9cf176540500b48f21d9f4f737b37010d1
2015-06-04 22:22:16 +00:00
Translation updater bot 9988e79e1e Localisation updates from https://translatewiki.net.
Change-Id: Ia884576d04482d4e9845cf60be67f7c1767bc6ed
2015-05-31 22:09:55 +02:00
Kunal Mehta e83a80e348 Set manifest_version in extension.json
Bug: T100745
Change-Id: Iee75b2bfe6b440daf9056cf2b7d624610d0f641e
2015-05-28 20:45:57 -07:00
Translation updater bot 6033b73b41 Localisation updates from https://translatewiki.net.
Change-Id: Ic6fb02fecdceccc5ba77411ccc6c621455e64b6a
2015-05-27 22:20:35 +02:00
Jackmcbarn fa7be37d15 Don't run references if the output type isn't HTML
It's possible that the output type is set to HTML when extensionSubstitution
is called, but that when we eventually get unstripped, it isn't anymore. If
this happens, detect it and bail out.

Bug: T99787
Change-Id: I32abaefeebc5357a2ab3fd23bcd47aa9b2a1663a
2015-05-25 13:34:02 +00:00
Kunal Mehta c79fcaa5ec Add SpecialCite stub file for backwards-compatability
Will trigger a warning that it has moved to a new repository

Change-Id: I21d5d751b1043bfd53f2f208c7f28285f5ad9a78
2015-05-25 15:01:42 +02:00
Translation updater bot fd2c57d0e4 Localisation updates from https://translatewiki.net.
Change-Id: Iab7aeba5c1264c3a87dfb8ca2f3390302fb00c18
2015-05-24 00:00:46 +02:00
Translation updater bot cd0fd5ab4f Localisation updates from https://translatewiki.net.
Change-Id: Ib384cdb2e28cc6b08239e3cb36929743b74f8588
2015-05-17 22:02:55 +02:00
Arlo Breault c74d64c2d7 Provide section-offsets for immediate children of <body>
* Changes xmlserializer.serializeToString and DU.serializeNode to return
   an object with the str and, if options.captureOffsets, the html offsets
   of top-level nodes.

 * Added mocha tests to capture expectations about offsets computation.

Bug: T96279
Change-Id: Id74988d3ef39078fbfea72359884b75290da041b
2015-05-14 11:50:16 -05:00
Jackmcbarn 944b245428 Do all of Cite's real work during unstrip
Cite has side effects that currently happen at the same time that the
preprocessor is running. This can cause oddities like references being out
of order, or references showing up in the reference list but never used in
the text. By moving the work to unstrip, only references actually used in
the final text will be present, and the numbering order will always match
the order they were used in the text. This depends on If83b0623 in core.

Change-Id: I0e136f952302b65f1abeeac5273bd842867e1dac
2015-05-13 02:54:37 +00:00
Translation updater bot 22d26c93c0 Localisation updates from https://translatewiki.net.
Change-Id: I4f6b9046c2c3532c7f05e2a1128aa7a3cf537117
2015-05-12 22:13:36 +02:00
Translation updater bot 029389b8a8 Localisation updates from https://translatewiki.net.
Change-Id: I54be45cd59a230b7ab438f94383b691ef103abb9
2015-05-09 21:46:35 +02:00
Translation updater bot 2683dd6967 Localisation updates from https://translatewiki.net.
Change-Id: Ic6912fdabb3ba302431853aa39fd9b56bcd3c5fb
2015-05-05 22:38:53 +02:00
jenkins-bot 3ef20f7d4b Merge "Add extension.json, empty PHP entry point" 2015-05-04 19:46:48 +00:00
Kunal Mehta 1048c10178 Add extension.json, empty PHP entry point
Depends upon I9a736a4c0ff73 in MediaWiki core

Bug: T87893
Change-Id: I860a1da0b49092bfeeea2c8f80b4da57efc913ec
2015-05-03 06:36:25 +00:00
C. Scott Ananian 4ca968a95c Remove vestigial reset() methods in Cite.
Cite is now stateless and should remain so!

Change-Id: Ib90cb1da8cb809f6fec9410ff6fb00c32e276dcf
2015-04-30 16:34:34 -04:00
Translation updater bot 8e8112c5fb Localisation updates from https://translatewiki.net.
Change-Id: If8d0929be09420d2896444e6ddcfe34a85d3cc24
2015-04-30 22:17:03 +02:00
Kunal Mehta 84ba4c4f92 Remove i18n shim
Change-Id: I69c654d470c44132eaf33856193960f44608d533
2015-04-30 11:42:49 -07:00
Kunal Mehta db9ff2bd18 Get rid of "wfCite" global function
As of Icdf82cb9771e6, MediaWiki core now looks for the "Cite" class
instead of the "wfCite" global function. The WYSIWYG extension is also
checking for wfCite and a patch was submitted for that in I3de3e069e4be.

Change-Id: Ie0f190b7bd9c9226856f150c95a0b139812dcf98
2015-04-30 11:41:06 -07:00
Kunal Mehta 49c2a5d595 Move CITE_DEFAULT_GROUP constant to Cite::DEFAULT_GROUP
Change-Id: I13c77f78563beb6e4ebf2a6d19327273ee2dbc07
2015-04-30 11:34:47 -07:00
Translation updater bot 45ccb240f5 Localisation updates from https://translatewiki.net.
Change-Id: I62aba5c63288bbbe5bbb688eafe8d4eabf395d64
2015-04-28 21:24:05 +02:00
Translation updater bot 7819006926 Localisation updates from https://translatewiki.net.
Change-Id: I18e611e5f6bcd7010792696fe1a113235368d43c
2015-04-27 22:11:21 +02:00
Arlo Breault 4c4f5ce368 [jscs] Enforce disallowMultipleVarDecl
* Continues on 3311936a5e15c2080d8040dd605e58fa33407e60 and
   05a8947fef30e6fc4519b822b0931d965d57efa8

 * With some whitespace cleanup.

Change-Id: I32109c6fd35439914df4df06432376d6a968268b
2015-04-22 11:18:38 -07:00
Kunal Mehta dc91fefb94 test: Configuring banana-checker for i18n messages
Change-Id: I4e136299c2df7974693fb7ac0e64f81d3de2ea0d
2015-04-20 20:27:10 -07:00
Translation updater bot 74c30c71cb Localisation updates from https://translatewiki.net.
Change-Id: I6357562e3792b7b1a19d2a5156f993d6c8f7a000
2015-04-19 21:19:59 +02:00
Translation updater bot a1e359d6c3 Localisation updates from https://translatewiki.net.
Change-Id: Ie87436970e3f39d64c903cb966df5da30cc51153
2015-04-13 22:30:54 +02:00
Translation updater bot ec9a31076a Localisation updates from https://translatewiki.net.
Change-Id: I2c58a5623683c368e25202997e21a155d2294ba6
2015-04-09 19:28:31 +02:00
Arlo Breault 61053dbcc7 [jscs] Enforce requireSpaceAfterBinaryOperators
* This was auto-corrected with jscs -x .

Change-Id: Idee8a562ae2c29cc5c661532b016220be3c107aa
2015-04-08 00:07:38 -07:00
Arlo Breault 4c9ad094d9 [jscs] Enforce disallowSpacesInFunction
* This was auto-corrected with jscs -x .

Change-Id: I7110a2eb946ae91ded268d73320a9e8194ca2ab1
2015-04-07 23:54:59 -07:00
Arlo Breault 49b3a70b39 [jscs] Enforce requireSpaceBeforeBinaryOperators
* This was auto-corrected with jscs -x .

Change-Id: I13df3896e8130743eb31581e80d4c7909e48768d
2015-04-07 23:28:41 -07:00
Marc Ordinas i Llopis e060ef8fe3 T93973: Remove state from Cite extension
Keep all state in the DOM post-processor in dom.processRefs.js, so
that there's no need to reset the extension and it can be safely
used for multiple documents

Change-Id: Iacf7e3003929f74b76774d3e765c792991700e51
2015-04-01 11:22:33 +02:00
Translation updater bot 1a7df05671 Localisation updates from https://translatewiki.net.
Change-Id: I1f43b7501058628fa94f12dcb1dd34803ad5d9f9
2015-03-31 21:42:41 +02:00
Translation updater bot ee2fc0aecf Localisation updates from https://translatewiki.net.
Change-Id: I2ca9f380bbf4973dc711085e2d442b17fc63a24f
2015-03-29 14:56:54 +02:00
Subramanya Sastry 9e29edb03f Bug fix in processRefs DOM pass refactoring
Change-Id: Icd4ce9919de4ba50e5186b8ec3b1923ae9eeb18e
2015-03-26 11:48:09 -05:00
Subramanya Sastry 4040f5d160 Code restructuring of processRefs DOM pass.
* This lets us do reset state in the right place where it belongs.

Change-Id: I542d521733c6c1fb6d93f269604e256df7f6492d
2015-03-25 17:45:15 -05:00
Marc Ordinas i Llopis c1b71a69ab T63165: Ensure reference index is reset at the end of document
Once all the missing references have been added, ensure that the
the reference index is reset to 0.

Also related to T93715.

Change-Id: I00a2b2da9116602d2eb00e782d4832cf580e4b59
2015-03-25 11:06:38 -07:00
Translation updater bot 63773883d6 Localisation updates from https://translatewiki.net.
Change-Id: I721132f76a3f0cea30aaa48b2c88612f563f4cd4
2015-03-24 22:20:37 +01:00
Translation updater bot 5a6d08bd6c Localisation updates from https://translatewiki.net.
Change-Id: Ic8774b998251c61ca82a8ec3d65448e042e92e99
2015-03-22 21:12:52 +01:00
Translation updater bot 97bae66ff1 Localisation updates from https://translatewiki.net.
Change-Id: I10b8536f227227c1625723c17ab8b20787c001ad
2015-03-18 15:59:35 +01:00