Commit graph

4699 commits

Author SHA1 Message Date
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
Schnark 530ef0ab9c Highlight target references
Highlight the target reference when the user clicks a reference link,
and also highlight the note in the text when he clicks the backlink.

This is done using the :target selector and a light blue background-color.
The color (and the rest of the code) are from English Wikipedia, from where
it has been copied to many other wikis, so the feature itself and especially
the color seem to be agreed on.

Browsers that don't support the :target selector (notably Internet Explorer 8
and below) will just ignore the new style and fall back to current behavior.
Wikis that have added this code to their common.css can remove it, but
of course nothing will break when they keep the duplicate code.

Bug: T10303
Change-Id: I5775daf6934516ce9c98841399e5a358195c1374
2015-03-16 08:29:20 +00:00
Translation updater bot 565b001c9e Localisation updates from https://translatewiki.net.
Change-Id: I6ffaee0a51425083a0d12e49c81f62d54e428624
2015-03-15 21:47:51 +01:00
Translation updater bot 8f982a94c2 Localisation updates from https://translatewiki.net.
Change-Id: Iee2edc72a527f932d1cefc837ff32d1072b3a739
2015-03-10 22:30:33 +01:00
Ritsyy 572e1023f1 T28462 changed print CSS for backlink arrows edited CSS according to coding conventions
Change-Id: I54caf0437557494dbf270b10a8564bc8d98a5c6a
2015-03-03 00:27:34 +05:30
Translation updater bot b26aebf7f3 Localisation updates from https://translatewiki.net.
Change-Id: If9fcbe87f345a878e70b3d9770712e85c229bd38
2015-02-28 22:03:42 +01:00
Marc Ordinas i Llopis dbb4e4b028 T88290: Keep separate content for multiple <ref>s with same name
Change-Id: Iae4dcdb405ce8d233af3105e19bab2b32938ed96
2015-02-27 11:40:04 -08:00
Marc Ordinas i Llopis 5a0abc13b9 T88290: Only output <ref> contents in <references>
Instead of outputting a <ref>'s HTML in both data-mw and in
<references>, output it only in the later and point to it from
data-mw.body.id.

Also preserve data-parsoid for <ref>s text in <references>, as now
that's the only representation of it.

To correctly do html2wt when there are <ref>s inside <references>
we need access to the main document DOM when serializing, so also
ensure that env.page.dom is correctly set (it was only set in v2
before).

Updated tests results and blacklist (some tests now pass).

Change-Id: I0fa7ad692585af19136909bfec39db9868b137c5
2015-02-27 03:14:53 -08:00
Brion Vibber 931707fd4a Update parser test case for gallery srcset support
Recent core update to gallery display includes srcset support; one of the
parser test cases for Cite uses a gallery and needs updating to match.

Bug: T64709
Change-Id: I6283415e2f7608d9a5c53bc94804fd95a79d3793
2015-02-26 09:59:39 -08:00
Translation updater bot bd37724fd0 Localisation updates from https://translatewiki.net.
Change-Id: I2d4657dd3425db310fcde839fec324180e002556
2015-02-25 22:52:27 +01:00
Translation updater bot d798afe3ce Localisation updates from https://translatewiki.net.
Change-Id: Ib8a544672aaa393ad67f00f60f4ffe37150448a8
2015-02-24 21:58:41 +01:00
Translation updater bot 4e0c0484d6 Localisation updates from https://translatewiki.net.
Change-Id: I5fcf28f39163ef552e71a2d9c3c5fae249988b39
2015-02-21 23:30:35 +01:00
Subramanya Sastry 6e6d3481b6 T90309: Ensure that implicitly-added <references> output have unique ids
* Fixed parser test output of one test to add unique ids. Output for
  other parser tests modified in f528f508 still need fixing up.
  Left for a separate patch.

Change-Id: I04546c2a590930121d960239a1954b26771e9c80
2015-02-20 19:02:45 -06:00
Translation updater bot 4d15f24973 Localisation updates from https://translatewiki.net.
Change-Id: Id64a3a5be405945b2702b6c4d341e1622cca8550
2015-02-20 22:25:49 +01:00
Translation updater bot f00ce1efd2 Localisation updates from https://translatewiki.net.
Change-Id: I616f1cbeb339ea9acecc4aeda53ea232b8ac7c0f
2015-02-19 22:04:27 +01:00
Subramanya Sastry e3bf708b77 Fix output for implicit references for improved html2wt output
* <references /> was not appearing on its own line and was
  instead getting tacked onto previous line of wikitext output.
* Change in blacklisted wt2wt test shows that the new output
  is better.

Change-Id: Ie82401a3bc6082b733339e2456810b6b1c87529a
2015-02-17 17:51:07 +00:00
Translation updater bot f4a96d79e6 Localisation updates from https://translatewiki.net.
Change-Id: I6fd65643440d4e4e78872b0100d54c07b32478c5
2015-02-16 21:51:58 +01:00
Marc Ordinas i Llopis f528f508e8 T88660: Emit reflists for <ref> with no explicit <references>
This patch emits a reflist for all ref groups that still have
<ref>s in them at the end of the document. Currently Cite.php only
does so for the default group. See also T88290.

On html2wt the missing <references> are added to the wikitext,
which makes the wikitext correct. Selser catches this if not part
of the edit.

Change tests to include an explicit <references /> tag, and add
one for explcitly testing that they do get added. This last one
has to be blacklisted as the new <references /> don't appear with
selser.

Change-Id: I79af2c34481cadbf0d68d9571928979adf559b58
2015-02-16 03:16:18 -08:00
Translation updater bot 3ccd1d6385 Localisation updates from https://translatewiki.net.
Change-Id: Iac662e182d2cf6f908dc1d940b306dcf15dcc86b
2015-02-13 22:18:20 +01:00
Chad Horohoe b818a87315 Remove obvious function-level profiling
Change-Id: I435365313846d7529601a2440ea2e3c40a5418f3
2015-02-10 13:53:33 -08:00
Translation updater bot 799a6c4820 Localisation updates from https://translatewiki.net.
Change-Id: I32f88e69738894487f889bdd8a08a9d8b9cebb93
2015-02-10 22:15:02 +01:00
Translation updater bot 201992cfc3 Localisation updates from https://translatewiki.net.
Change-Id: If326f85726f557a1d2668abb34f4d1589d77e7a6
2015-02-02 22:25:29 +01:00
Translation updater bot 5807500e00 Localisation updates from https://translatewiki.net.
Change-Id: I1e187106a53f6cba63bb401e58fbfb1e748ae420
2015-01-25 21:44:06 +01:00
Translation updater bot 7d5392f21a Localisation updates from https://translatewiki.net.
Change-Id: I5b140fa92d5b5dc5c9a2587ad08bc061a571cf47
2015-01-22 23:19:33 +01:00
Translation updater bot bc39bd779e Localisation updates from https://translatewiki.net.
Change-Id: Id6bfa7fbffc01029dbb45b9d0c5f459d02b21f10
2015-01-19 22:00:39 +01:00
Translation updater bot 1ccb9c1bd8 Localisation updates from https://translatewiki.net.
Change-Id: I02bb1e04e513e8e8b9a788a02e128916b517e813
2015-01-18 22:15:58 +01:00
Ricordisamoa a8eba39db0 Fix 'license-name' to match SPDX conventions
References:
http://spdx.org/licenses/
https://www.mediawiki.org/wiki/Manual:$wgExtensionCredits#license-name

While 'GPLv2' could mean 'GPLv2 only', the comment at the top of
the file clearly states 'GNU General Public License 2.0 or later'.

Change-Id: I1546f4caef78a17f945c903f2f28d53bf830ca95
2015-01-16 02:11:18 +01:00
Ori Livneh ee4d83a1a7 MWException -> Exception
Change-Id: Ibc0d80f6cb66d96eb1bcb71bb1ee1b097c7878e6
2015-01-09 17:47:47 -08:00
Bryan Davis db56e255d4 Guard against unset array access
From prod error logs:
  Undefined index: 0 in Cite_body.php on line 396
  Undefined index: 1 in Cite_body.php on line 396
  Undefined index: 2 in Cite_body.php on line 396
  Undefined index: 3 in Cite_body.php on line 396
  Undefined index: follow in Cite_body.php on line 396

Change-Id: Id727f2fd7e72d8c4ceb74fdac42885d5c030b4af
2015-01-09 09:09:42 -07:00
Marc Ordinas i Llopis cd8e50acb2 [Cite] Generate the same ids for <ref>s and notes as Cite.php
One particular case is that Cite.php considers equal a name and
its encoding, i.e. "a & b" === "a &amp; b". Added a new test for
this case, but blacklisted it on html2wt, wt2wt and html2html due
to a different problem with how Parsoid encodes entities. This
will be investigated separately, as a simple fix could break
unrelated cases.

Also updated tests and blacklist to the new ids.

Change-Id: I87637a1dc812a3a8f29327b9e6c0040b22a651c4
2015-01-07 11:27:07 +01:00
Translation updater bot e21c7852c6 Localisation updates from https://translatewiki.net.
Change-Id: I04961d4aefa20f2fb7fef7b5ef21e5f03fa843da
2014-12-26 09:43:35 +01:00
Translation updater bot 19570b6cc2 Localisation updates from https://translatewiki.net.
Change-Id: Id677c3230b4fcc8ce86eb389b6c1b988427ee76e
2014-12-23 21:39:14 +01:00